Named colors in HTML & CSS


Table of widely understood named colors found in HTML3 specification.

HTML3 color names
Name Equivalent Name Equivalent
black #000000 green #008000
silver #C0C0C0 lime #00FF00
gray #808080 olive #808000
white #FFFFFF yellow #FFFF00
maroon #800000 navy #000080
red #FF0000 blue #0000FF
purple #800080 teal #008080
fuchsia #FF00FF aqua #00FFFF

Other named colors

Modern browsers actually understand hundreds of named colors, too many to list them all here.

RGB colors

Instead of named colors, you can also use the #RRGGBB notation. Hash sign indicates a RGB color, each component (red, green and blue) is specified by a pair of hexadecimal digits (00 ~ FF, corresponding to 0 ~ 255).

Related


© 2022 Jan "Manna5" Mleczko