EN

HTML Color Codes

All 148 color names you can use in HTML and CSS, with their HEX, RGB and HSL codes, grouped by color. Click a code to copy it. Values come from the W3C CSS Color Module Level 4 (checked 2026-11-24).

Red HTML color names

NameHEXRGBHSL
brownhsl(0, 59.4%, 40.6%)
crimsonhsl(348, 83.3%, 47.1%)
darkredhsl(0, 100%, 27.3%)
firebrickhsl(0, 67.9%, 41.6%)
indianredhsl(0, 53.1%, 58.2%)
maroonhsl(0, 100%, 25.1%)
palevioletredhsl(340.4, 59.8%, 64.9%)
redhsl(0, 100%, 50%)
rosybrownhsl(0, 25.1%, 64.9%)
tomatohsl(9.1, 100%, 63.9%)

Pink HTML color names

NameHEXRGBHSL
darkmagentahsl(300, 100%, 27.3%)
deeppinkhsl(327.6, 100%, 53.9%)
fuchsiahsl(300, 100%, 50%)
hotpinkhsl(330, 100%, 70.6%)
lavenderblushhsl(340, 100%, 97.1%)
lightcoralhsl(0, 78.9%, 72.2%)
lightpinkhsl(351, 100%, 85.7%)
magentahsl(300, 100%, 50%)
mediumvioletredhsl(322.2, 80.9%, 43.1%)
mistyrosehsl(6, 100%, 94.1%)
orchidhsl(302.3, 58.9%, 64.7%)
pinkhsl(349.5, 100%, 87.6%)
plumhsl(300, 47.3%, 74.7%)
purplehsl(300, 100%, 25.1%)
salmonhsl(6.2, 93.2%, 71.4%)
snowhsl(0, 100%, 99%)
thistlehsl(300, 24.3%, 79.8%)
violethsl(300, 76.1%, 72.2%)

Orange HTML color names

NameHEXRGBHSL
antiquewhitehsl(34.3, 77.8%, 91.2%)
bisquehsl(32.5, 100%, 88.4%)
blanchedalmondhsl(36, 100%, 90.2%)
burlywoodhsl(33.8, 56.9%, 70%)
chocolatehsl(25, 75%, 47.1%)
coralhsl(16.1, 100%, 65.7%)
darkorangehsl(32.9, 100%, 50%)
darksalmonhsl(15.1, 71.6%, 69.6%)
floralwhitehsl(40, 100%, 97.1%)
goldenrodhsl(42.9, 74.4%, 49%)
lightsalmonhsl(17.1, 100%, 73.9%)
linenhsl(30, 66.7%, 94.1%)
moccasinhsl(38.1, 100%, 85.5%)
navajowhitehsl(35.9, 100%, 83.9%)
oldlacehsl(39.1, 85.2%, 94.7%)
orangehsl(38.8, 100%, 50%)
orangeredhsl(16.2, 100%, 50%)
papayawhiphsl(37.1, 100%, 91.8%)
peachpuffhsl(28.3, 100%, 86.3%)
peruhsl(29.6, 58.7%, 52.5%)
sandybrownhsl(27.6, 87.1%, 66.7%)
seashellhsl(24.7, 100%, 96.7%)
tanhsl(34.3, 43.7%, 68.6%)
wheathsl(39.1, 76.7%, 83.1%)

Yellow HTML color names

NameHEXRGBHSL
beigehsl(60, 55.6%, 91.2%)
cornsilkhsl(48, 100%, 93.1%)
darkkhakihsl(55.6, 38.3%, 58%)
goldhsl(50.6, 100%, 50%)
ivoryhsl(60, 100%, 97.1%)
khakihsl(54, 76.9%, 74.5%)
lemonchiffonhsl(54, 100%, 90.2%)
lightgoldenrodyellowhsl(60, 80%, 90.2%)
lightyellowhsl(60, 100%, 93.9%)
olivehsl(60, 100%, 25.1%)
palegoldenrodhsl(54.7, 66.7%, 80%)
yellowhsl(60, 100%, 50%)

Brown HTML color names

NameHEXRGBHSL
darkgoldenrodhsl(42.7, 88.7%, 38.2%)
saddlebrownhsl(25, 75.9%, 31%)
siennahsl(19.3, 56.1%, 40.2%)

Green HTML color names

NameHEXRGBHSL
aquamarinehsl(159.8, 100%, 74.9%)
chartreusehsl(90.1, 100%, 50%)
darkgreenhsl(120, 100%, 19.6%)
darkolivegreenhsl(82, 39%, 30.2%)
darkseagreenhsl(120, 25.1%, 64.9%)
forestgreenhsl(120, 60.7%, 33.9%)
greenhsl(120, 100%, 25.1%)
greenyellowhsl(83.7, 100%, 59.2%)
honeydewhsl(120, 100%, 97.1%)
lawngreenhsl(90.5, 100%, 49.4%)
lightgreenhsl(120, 73.4%, 74.9%)
limehsl(120, 100%, 50%)
limegreenhsl(120, 60.8%, 50%)
mediumaquamarinehsl(159.6, 50.7%, 60.2%)
mediumseagreenhsl(146.7, 49.8%, 46.9%)
mediumspringgreenhsl(157, 100%, 49%)
mintcreamhsl(150, 100%, 98%)
olivedrabhsl(79.6, 60.5%, 34.7%)
palegreenhsl(120, 92.5%, 79%)
seagreenhsl(146.5, 50.3%, 36.3%)
springgreenhsl(149.9, 100%, 50%)
yellowgreenhsl(79.7, 60.8%, 50%)

Cyan HTML color names

NameHEXRGBHSL
aquahsl(180, 100%, 50%)
azurehsl(180, 100%, 97.1%)
cadetbluehsl(181.8, 25.5%, 50%)
cyanhsl(180, 100%, 50%)
darkcyanhsl(180, 100%, 27.3%)
darkslategrayhsl(180, 25.4%, 24.7%)
darkslategreyhsl(180, 25.4%, 24.7%)
darkturquoisehsl(180.9, 100%, 41%)
deepskybluehsl(195.1, 100%, 50%)
lightbluehsl(194.7, 53.3%, 79%)
lightcyanhsl(180, 100%, 93.9%)
lightseagreenhsl(176.7, 69.5%, 41.2%)
mediumturquoisehsl(177.8, 59.8%, 55.1%)
paleturquoisehsl(180, 64.9%, 81%)
powderbluehsl(186.7, 51.9%, 79.6%)
skybluehsl(197.4, 71.4%, 72.5%)
tealhsl(180, 100%, 25.1%)
turquoisehsl(174, 72.1%, 56.5%)

Blue HTML color names

NameHEXRGBHSL
alicebluehsl(208, 100%, 97.1%)
bluehsl(240, 100%, 50%)
cornflowerbluehsl(218.5, 79.2%, 66.1%)
darkbluehsl(240, 100%, 27.3%)
darkslatebluehsl(248.5, 39%, 39.2%)
dodgerbluehsl(209.6, 100%, 55.9%)
ghostwhitehsl(240, 100%, 98.6%)
lavenderhsl(240, 66.7%, 94.1%)
lightskybluehsl(203, 92%, 75.5%)
lightslategrayhsl(210, 14.3%, 53.3%)
lightslategreyhsl(210, 14.3%, 53.3%)
lightsteelbluehsl(213.9, 41.1%, 78%)
mediumbluehsl(240, 100%, 40.2%)
mediumslatebluehsl(248.5, 79.8%, 67.1%)
midnightbluehsl(240, 63.5%, 26.9%)
navyhsl(240, 100%, 25.1%)
royalbluehsl(225, 72.7%, 56.9%)
slatebluehsl(248.3, 53.5%, 57.8%)
slategrayhsl(210, 12.6%, 50.2%)
slategreyhsl(210, 12.6%, 50.2%)
steelbluehsl(207.3, 44%, 49%)

Purple HTML color names

NameHEXRGBHSL
blueviolethsl(271.1, 75.9%, 52.7%)
darkorchidhsl(280.1, 60.6%, 49.8%)
darkviolethsl(282.1, 100%, 41.4%)
indigohsl(274.6, 100%, 25.5%)
mediumorchidhsl(288.1, 58.9%, 58%)
mediumpurplehsl(259.6, 59.8%, 64.9%)
rebeccapurplehsl(270, 50%, 40%)

White HTML color names

NameHEXRGBHSL
whitehsl(0, 0%, 100%)
whitesmokehsl(0, 0%, 96.1%)

Gray HTML color names

NameHEXRGBHSL
blackhsl(0, 0%, 0%)
darkgrayhsl(0, 0%, 66.3%)
darkgreyhsl(0, 0%, 66.3%)
dimgrayhsl(0, 0%, 41.2%)
dimgreyhsl(0, 0%, 41.2%)
gainsborohsl(0, 0%, 86.3%)
grayhsl(0, 0%, 50.2%)
greyhsl(0, 0%, 50.2%)
lightgrayhsl(0, 0%, 82.7%)
lightgreyhsl(0, 0%, 82.7%)
silverhsl(0, 0%, 75.3%)

Using color names in CSS

Write the name anywhere CSS expects a color: color: teal;, background: lavender; or border: 2px solid crimson;. Names are not case-sensitive. To get a lighter or darker version, or to check if text is readable on a named color, use the color converter and the contrast checker.

Frequently asked questions

How many HTML color names are there?

CSS defines 148 named colors (W3C CSS Color Module Level 4). Some are duplicates with two spellings or names: aqua and cyan are both #00FFFF, fuchsia and magenta are both #FF00FF, and every gray color also works as grey.

Are HTML color names and CSS color names the same?

Yes. HTML pages use CSS for colors, so the names are the same everywhere: color: teal; works in any modern browser.

Which color name was added last?

rebeccapurple (#663399) was added in CSS Color Level 4 in 2014, in memory of Rebecca Meyer, daughter of CSS expert Eric Meyer.

Should I use names or HEX codes?

Names are easy to read for quick work, but HEX, rgb() or hsl() give you any of 16.7 million colors and are what design tools export. Use the converter to switch formats.