Appendix C. Color Equivalence Table
All 148 color names defined by the CSS Color Module Level 4 (as of the 22 May 2017 version), along with their equivalents in both styles of RGB, HSL, hexadecimal, and three-digit hex shorthand (when applicable).
As of late 2017, there were several new color notations being considered, such as hwb()
, gray()
, lab()
, lch()
, and more. These color types are not included in this table due to their lack of support and uncertain future.
Color name | RGB decimal | RGB percentage | HSL | Hexadecimal |
---|---|---|---|---|
aliceblue
|
rgb(240,248,255)
|
rgb(94.1%,97.3%,100%)
|
hsl(208,100%,97.1%)
|
#F0F8FF
|
antiquewhite
|
rgb(250,235,215)
|
rgb(98%,92.2%,84.3%)
|
hsl(34,77.8%,91.2%)
|
#FAEBD7
|
aqua
|
rgb(0,255,255)
|
rgb(0%,100%,100%)
|
hsl(180,100%,50%)
|
#00FFFF /#0FF
|
aquamarine
|
rgb(127,255,212)
|
rgb(49.8%,100%,83.1%)
|
hsl(160,100%,74.9%)
|
#7FFFD4
|
azure
|
rgb(240,255,255)
|
rgb(94.1%,100%,100%)
|
hsl(180,100%,97.1%)
|
#F0FFFF
|
beige
|
rgb(245,245,220)
|
rgb(96.1%,96.1%,86.3%)
|
hsl(60,55.6%,91.2%)
|
#F5F5DC
|
bisque
|
rgb(255,228,196)
|
rgb(100%,89.4%,76.9%)
|
hsl(33,100%,88.4%)
|
#FFE4C4
|
black
|
rgb(0,0,0)
|
rgb(0%,0%,0%)
|
hsl(0,0%,0%)
|
#000000 /#000
|
blanchedalmond
|
rgb(255,235,205)
|
rgb(100%,92.2%,80.4%)
|
hsl(36,100%,90.2%)
|
#FFEBCD
|
blue
|
rgb(0,0,255)
|
rgb(0%,0%,100%)
|
hsl(240,100%,50%)
|
#0000FF /#00F
|
blueviolet
|
rgb(138,43,226)
|
rgb(54.1%,16.9%,88.6%)
|
hsl(271,75.9%,52.7%)
|
#8A2BE2
|
brown
|
rgb(165,42,42) ... |
Get CSS: The Definitive Guide, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.