colorcodekit

Open color data

The 148 CSS named colors as a free CSV and JSON file, with RGB, HSL, OKLCH, CMYK, best text color and nearest neighbor. Public domain (CC0).

Colors#00FF49
LicenseCC0 1.0
FormatsCSV, JSON

Download the data

All 148 CSS named colors in one file, with the codes most projects need and two computed fields that are hard to find elsewhere: the best text color for each and its nearest neighbor. The files are free, need no login and are licensed CC0 1.0 (public domain).

Columns

ColumnTypeMeaning
nametextThe CSS keyword, lowercase.
hextextSix-digit hex code, uppercase, with #.
r, g, bintegersRGB channels, 0 to 255.
hsl_h, hsl_s, hsl_lintegerHSL as degrees, percent and percent, rounded.
oklch_l, oklch_c, oklch_hnumberOKLCH lightness (0 to 1), chroma and hue in degrees. Hue is 0 for grays.
cmyk_c, cmyk_m, cmyk_y, cmyk_kintegerA direct screen conversion in percent. It is not a print profile.
best_texttext#FFFFFF or #000000, whichever has the higher WCAG contrast on this color.
best_text_contrastnumberThe WCAG 2.2 contrast ratio of that text color on this color.
same_hex_astextOther keywords with the same value, separated by semicolons. For example aqua and cyan.
nearest_othertextThe closest other named color with a different hex, by CIEDE2000.
nearest_other_deltaE2000numberThat distance. Below 1 is hard to see. Above about 5 the colors read as different.

Browse the data

148 rows
NameHexRGBHSLOKLCHBest textNearest other (ΔE)
aliceblue#F0F8FF240, 248, 255208, 100%, 97%0.975 0.013 244.3Black 19.6:1ghostwhite (3.8)
antiquewhite#FAEBD7250, 235, 21534, 78%, 91%0.947 0.031 75.2Black 17.9:1papayawhip (2.3)
aqua#00FFFF0, 255, 255180, 100%, 50%0.905 0.155 194.8Black 16.8:1turquoise (8.6)
aquamarine#7FFFD4127, 255, 212160, 100%, 75%0.915 0.130 169Black 17.2:1turquoise (10.7)
azure#F0FFFF240, 255, 255180, 100%, 97%0.989 0.016 196.9Black 20.4:1mintcream (2.8)
beige#F5F5DC245, 245, 22060, 56%, 91%0.964 0.033 107Black 19.0:1lightyellow (2.7)
bisque#FFE4C4255, 228, 19633, 100%, 88%0.933 0.051 71.8Black 17.1:1blanchedalmond (2.9)
black#0000000, 0, 00, 0%, 0%0.000 0.000 0White 21.0:1darkslategray (24.3)
blanchedalmond#FFEBCD255, 235, 20536, 100%, 90%0.948 0.045 78.1Black 18.0:1papayawhip (1.8)
blue#0000FF0, 0, 255240, 100%, 50%0.452 0.313 264.1White 8.6:1mediumblue (6.4)
blueviolet#8A2BE2138, 43, 226271, 76%, 53%0.534 0.250 301.4White 6.0:1darkviolet (4.0)
brown#A52A2A165, 42, 420, 59%, 41%0.481 0.160 25.6White 7.1:1firebrick (3.1)
burlywood#DEB887222, 184, 13534, 57%, 70%0.804 0.078 73.4Black 11.3:1tan (3.1)
cadetblue#5F9EA095, 158, 160182, 25%, 50%0.658 0.065 198.3Black 6.9:1lightseagreen (9.3)
chartreuse#7FFF00127, 255, 090, 100%, 50%0.890 0.265 136Black 16.2:1lawngreen (0.7)
chocolate#D2691E210, 105, 3025, 75%, 47%0.634 0.155 50.3Black 5.8:1peru (9.0)
coral#FF7F50255, 127, 8016, 100%, 66%0.735 0.168 40.2Black 8.4:1tomato (7.1)
cornflowerblue#6495ED100, 149, 237219, 79%, 66%0.675 0.141 261.3Black 7.1:1dodgerblue (5.5)
cornsilk#FFF8DC255, 248, 22048, 100%, 93%0.977 0.037 95.4Black 19.7:1beige (3.1)
crimson#DC143C220, 20, 60348, 83%, 47%0.571 0.222 20.1White 5.0:1firebrick (9.7)
cyan#00FFFF0, 255, 255180, 100%, 50%0.905 0.155 194.8Black 16.8:1turquoise (8.6)
darkblue#00008B0, 0, 139240, 100%, 27%0.288 0.199 264.1White 15.3:1navy (1.6)
darkcyan#008B8B0, 139, 139180, 100%, 27%0.577 0.098 194.8Black 5.1:1teal (4.0)
darkgoldenrod#B8860B184, 134, 1143, 89%, 38%0.652 0.132 81.6Black 6.5:1goldenrod (9.7)
darkgray#A9A9A9169, 169, 1690, 0%, 66%0.735 0.000 0Black 8.9:1silver (6.3)
darkgreen#0064000, 100, 0120, 100%, 20%0.436 0.148 142.5White 7.4:1green (9.4)
darkgrey#A9A9A9169, 169, 1690, 0%, 66%0.735 0.000 0Black 8.9:1silver (6.3)
darkkhaki#BDB76B189, 183, 10756, 38%, 58%0.767 0.098 104.5Black 10.2:1khaki (11.7)
darkmagenta#8B008B139, 0, 139300, 100%, 27%0.447 0.205 328.4White 8.5:1purple (2.4)
darkolivegreen#556B2F85, 107, 4782, 39%, 30%0.495 0.090 126.2White 6.0:1darkgreen (11.2)
darkorange#FF8C00255, 140, 033, 100%, 50%0.750 0.179 58.3Black 9.0:1sandybrown (8.5)
darkorchid#9932CC153, 50, 204280, 61%, 50%0.541 0.227 311.5White 5.7:1blueviolet (4.4)
darkred#8B0000139, 0, 00, 100%, 27%0.400 0.164 29.2White 10.0:1maroon (2.2)
darksalmon#E9967A233, 150, 12215, 72%, 70%0.751 0.108 39.4Black 9.1:1lightsalmon (4.7)
darkseagreen#8FBC8F143, 188, 143120, 25%, 65%0.751 0.080 144.7Black 9.8:1mediumaquamarine (9.9)
darkslateblue#483D8B72, 61, 139248, 39%, 39%0.414 0.125 286White 9.1:1rebeccapurple (7.3)
darkslategray#2F4F4F47, 79, 79180, 25%, 25%0.403 0.038 195.8White 8.9:1dimgray (17.0)
darkslategrey#2F4F4F47, 79, 79180, 25%, 25%0.403 0.038 195.8White 8.9:1dimgray (17.0)
darkturquoise#00CED10, 206, 209181, 100%, 41%0.772 0.131 196.6Black 10.8:1mediumturquoise (3.2)
darkviolet#9400D3148, 0, 211282, 100%, 41%0.515 0.261 309.8White 6.6:1blueviolet (4.0)
deeppink#FF1493255, 20, 147328, 100%, 54%0.655 0.261 356.9Black 5.8:1hotpink (9.8)
deepskyblue#00BFFF0, 191, 255195, 100%, 50%0.755 0.153 231.6Black 9.9:1lightskyblue (7.9)
dimgray#696969105, 105, 1050, 0%, 41%0.521 0.000 0White 5.5:1gray (9.1)
dimgrey#696969105, 105, 1050, 0%, 41%0.521 0.000 0White 5.5:1gray (9.1)
dodgerblue#1E90FF30, 144, 255210, 100%, 56%0.652 0.190 253.2Black 6.5:1cornflowerblue (5.5)
firebrick#B22222178, 34, 340, 68%, 42%0.497 0.180 26.8White 6.7:1brown (3.1)
floralwhite#FFFAF0255, 250, 24040, 100%, 97%0.986 0.014 84.6Black 20.2:1oldlace (2.4)
forestgreen#228B2234, 139, 34120, 61%, 34%0.558 0.169 142.9Black 4.8:1green (4.6)
fuchsia#FF00FF255, 0, 255300, 100%, 50%0.702 0.323 328.4Black 6.7:1orchid (10.2)
gainsboro#DCDCDC220, 220, 2200, 0%, 86%0.894 0.000 0Black 15.3:1lightgray (2.1)
ghostwhite#F8F8FF248, 248, 255240, 100%, 99%0.981 0.009 286.2Black 19.9:1whitesmoke (3.6)
gold#FFD700255, 215, 051, 100%, 50%0.887 0.182 95.3Black 15.0:1yellow (11.6)
goldenrod#DAA520218, 165, 3243, 74%, 49%0.752 0.147 84Black 9.4:1orange (8.9)
gray#808080128, 128, 1280, 0%, 50%0.600 0.000 0Black 5.3:1slategray (8.9)
green#0080000, 128, 0120, 100%, 25%0.520 0.177 142.5White 5.1:1forestgreen (4.6)
greenyellow#ADFF2F173, 255, 4784, 100%, 59%0.913 0.234 130Black 17.1:1chartreuse (4.4)
grey#808080128, 128, 1280, 0%, 50%0.600 0.000 0Black 5.3:1slategray (8.9)
honeydew#F0FFF0240, 255, 240120, 100%, 97%0.985 0.025 145.4Black 20.3:1mintcream (4.8)
hotpink#FF69B4255, 105, 180330, 100%, 71%0.728 0.197 352Black 7.9:1palevioletred (8.2)
indianred#CD5C5C205, 92, 920, 53%, 58%0.615 0.144 22.2Black 5.3:1crimson (9.7)
indigo#4B008275, 0, 130275, 100%, 25%0.339 0.179 301.7White 12.9:1darkblue (7.7)
ivory#FFFFF0255, 255, 24060, 100%, 97%0.996 0.020 106.8Black 20.8:1floralwhite (3.7)
khaki#F0E68C240, 230, 14054, 77%, 75%0.913 0.112 102.8Black 16.4:1palegoldenrod (5.2)
lavender#E6E6FA230, 230, 250240, 67%, 94%0.931 0.027 285.9Black 17.1:1ghostwhite (6.5)
lavenderblush#FFF0F5255, 240, 245340, 100%, 97%0.968 0.017 355.1Black 19.0:1snow (5.4)
lawngreen#7CFC00124, 252, 090, 100%, 49%0.882 0.263 136.2Black 15.8:1chartreuse (0.7)
lemonchiffon#FFFACD255, 250, 20554, 100%, 90%0.978 0.058 102.2Black 19.8:1lightgoldenrodyellow (2.1)
lightblue#ADD8E6173, 216, 230195, 53%, 79%0.856 0.049 219.7Black 13.7:1powderblue (4.3)
lightcoral#F08080240, 128, 1280, 79%, 72%0.725 0.138 21Black 8.1:1salmon (5.0)
lightcyan#E0FFFF224, 255, 255180, 100%, 94%0.978 0.032 196.6Black 19.9:1azure (5.2)
lightgoldenrodyellow#FAFAD2250, 250, 21060, 80%, 90%0.975 0.052 107.3Black 19.7:1lemonchiffon (2.1)
lightgray#D3D3D3211, 211, 2110, 0%, 83%0.867 0.000 0Black 14.0:1gainsboro (2.1)
lightgreen#90EE90144, 238, 144120, 73%, 75%0.868 0.156 144.1Black 14.8:1palegreen (2.8)
lightgrey#D3D3D3211, 211, 2110, 0%, 83%0.867 0.000 0Black 14.0:1gainsboro (2.1)
lightpink#FFB6C1255, 182, 193351, 100%, 86%0.847 0.086 9.1Black 12.7:1pink (2.7)
lightsalmon#FFA07A255, 160, 12217, 100%, 74%0.794 0.125 42.4Black 10.6:1darksalmon (4.7)
lightseagreen#20B2AA32, 178, 170177, 70%, 41%0.691 0.114 189Black 8.0:1darkturquoise (8.5)
lightskyblue#87CEFA135, 206, 250203, 92%, 75%0.821 0.095 236.8Black 12.2:1skyblue (4.5)
lightslategray#778899119, 136, 153210, 14%, 53%0.619 0.033 248.4Black 5.8:1slategray (3.0)
lightslategrey#778899119, 136, 153210, 14%, 53%0.619 0.033 248.4Black 5.8:1slategray (3.0)
lightsteelblue#B0C4DE176, 196, 222214, 41%, 78%0.814 0.043 255Black 11.8:1lightskyblue (10.6)
lightyellow#FFFFE0255, 255, 22460, 100%, 94%0.992 0.040 107.1Black 20.6:1beige (2.7)
lime#00FF000, 255, 0120, 100%, 50%0.866 0.295 142.5Black 15.3:1lawngreen (5.0)
limegreen#32CD3250, 205, 50120, 61%, 50%0.742 0.229 142.8Black 9.9:1yellowgreen (10.9)
linen#FAF0E6250, 240, 23030, 67%, 94%0.960 0.017 67.6Black 18.7:1seashell (1.8)
magenta#FF00FF255, 0, 255300, 100%, 50%0.702 0.323 328.4Black 6.7:1orchid (10.2)
maroon#800000128, 0, 00, 100%, 25%0.377 0.155 29.2White 10.9:1darkred (2.2)
mediumaquamarine#66CDAA102, 205, 170160, 51%, 60%0.777 0.110 168.8Black 10.9:1turquoise (8.8)
mediumblue#0000CD0, 0, 205240, 100%, 40%0.384 0.266 264.1White 11.2:1blue (6.4)
mediumorchid#BA55D3186, 85, 211288, 59%, 58%0.626 0.202 319.2Black 5.3:1orchid (9.5)
mediumpurple#9370DB147, 112, 219260, 60%, 65%0.627 0.158 296.7Black 5.6:1mediumslateblue (6.1)
mediumseagreen#3CB37160, 179, 113147, 50%, 47%0.684 0.144 155Black 7.9:1darkseagreen (10.7)
mediumslateblue#7B68EE123, 104, 238249, 80%, 67%0.605 0.194 285.5Black 5.1:1mediumpurple (6.1)
mediumspringgreen#00FA9A0, 250, 154157, 100%, 49%0.867 0.207 156.9Black 15.1:1springgreen (4.5)
mediumturquoise#48D1CC72, 209, 204178, 60%, 55%0.787 0.116 191.6Black 11.3:1darkturquoise (3.2)
mediumvioletred#C71585199, 21, 133322, 81%, 43%0.553 0.222 349.7White 5.4:1deeppink (12.2)
midnightblue#19197025, 25, 112240, 64%, 27%0.288 0.144 272.8White 14.8:1navy (5.5)
mintcream#F5FFFA245, 255, 250150, 100%, 98%0.991 0.012 164.8Black 20.6:1azure (2.8)
mistyrose#FFE4E1255, 228, 2256, 100%, 94%0.940 0.030 25.3Black 17.4:1lavenderblush (5.5)
moccasin#FFE4B5255, 228, 18138, 100%, 85%0.930 0.068 81.4Black 17.0:1wheat (2.0)
navajowhite#FFDEAD255, 222, 17336, 100%, 84%0.916 0.073 77.4Black 16.3:1moccasin (2.1)
navy#0000800, 0, 128240, 100%, 25%0.271 0.188 264.1White 16.0:1darkblue (1.6)
oldlace#FDF5E6253, 245, 23039, 85%, 95%0.972 0.022 83.3Black 19.4:1floralwhite (2.4)
olive#808000128, 128, 060, 100%, 25%0.581 0.127 109.8Black 5.0:1olivedrab (9.8)
olivedrab#6B8E23107, 142, 3580, 60%, 35%0.600 0.137 126.3Black 5.5:1olive (9.8)
orange#FFA500255, 165, 039, 100%, 50%0.793 0.171 70.7Black 10.6:1darkorange (8.7)
orangered#FF4500255, 69, 016, 100%, 50%0.660 0.229 35.4Black 6.1:1red (6.4)
orchid#DA70D6218, 112, 214302, 59%, 65%0.702 0.181 328.7Black 7.3:1violet (5.7)
palegoldenrod#EEE8AA238, 232, 17055, 67%, 80%0.921 0.080 103.2Black 16.8:1khaki (5.2)
palegreen#98FB98152, 251, 152120, 93%, 79%0.903 0.162 144.1Black 16.6:1lightgreen (2.8)
paleturquoise#AFEEEE175, 238, 238180, 65%, 81%0.907 0.063 196.1Black 16.3:1powderblue (4.9)
palevioletred#DB7093219, 112, 147340, 60%, 65%0.678 0.138 0.7Black 6.8:1hotpink (8.2)
papayawhip#FFEFD5255, 239, 21337, 100%, 92%0.958 0.038 80Black 18.6:1blanchedalmond (1.8)
peachpuff#FFDAB9255, 218, 18528, 100%, 86%0.911 0.060 63.7Black 16.0:1bisque (3.9)
peru#CD853F205, 133, 6330, 59%, 53%0.678 0.123 62.2Black 7.0:1chocolate (9.0)
pink#FFC0CB255, 192, 203350, 100%, 88%0.868 0.073 7.1Black 13.7:1lightpink (2.7)
plum#DDA0DD221, 160, 221300, 47%, 75%0.783 0.108 326.5Black 10.2:1violet (8.7)
powderblue#B0E0E6176, 224, 230187, 52%, 80%0.875 0.050 205.7Black 14.7:1lightblue (4.3)
purple#800080128, 0, 128300, 100%, 25%0.421 0.194 328.4White 9.4:1darkmagenta (2.4)
rebeccapurple#663399102, 51, 153270, 50%, 40%0.440 0.160 303.4White 8.4:1darkslateblue (7.3)
red#FF0000255, 0, 00, 100%, 50%0.628 0.258 29.2Black 5.2:1orangered (6.4)
rosybrown#BC8F8F188, 143, 1430, 25%, 65%0.693 0.055 18.6Black 7.5:1lightcoral (12.0)
royalblue#4169E165, 105, 225225, 73%, 57%0.560 0.188 266.4White 4.8:1slateblue (9.1)
saddlebrown#8B4513139, 69, 1925, 76%, 31%0.471 0.112 50.8White 7.1:1sienna (6.8)
salmon#FA8072250, 128, 1146, 93%, 71%0.735 0.151 28.1Black 8.4:1lightcoral (5.0)
sandybrown#F4A460244, 164, 9628, 87%, 67%0.784 0.127 59.7Black 10.3:1darkorange (8.5)
seagreen#2E8B5746, 139, 87146, 50%, 36%0.569 0.119 154.9Black 5.0:1forestgreen (9.4)
seashell#FFF5EE255, 245, 23825, 100%, 97%0.976 0.014 57.6Black 19.6:1linen (1.8)
sienna#A0522D160, 82, 4519, 56%, 40%0.526 0.115 44.6White 5.6:1saddlebrown (6.8)
silver#C0C0C0192, 192, 1920, 0%, 75%0.808 0.000 0Black 11.5:1lightgray (4.7)
skyblue#87CEEB135, 206, 235197, 71%, 73%0.815 0.082 225.8Black 12.1:1lightskyblue (4.5)
slateblue#6A5ACD106, 90, 205248, 53%, 58%0.544 0.171 285.5White 5.3:1mediumslateblue (7.1)
slategray#708090112, 128, 144210, 13%, 50%0.593 0.031 248.3Black 5.2:1lightslategray (3.0)
slategrey#708090112, 128, 144210, 13%, 50%0.593 0.031 248.3Black 5.2:1lightslategray (3.0)
snow#FFFAFA255, 250, 2500, 100%, 99%0.989 0.005 17.2Black 20.3:1white (2.5)
springgreen#00FF7F0, 255, 127150, 100%, 50%0.875 0.235 151Black 15.6:1mediumspringgreen (4.5)
steelblue#4682B470, 130, 180207, 44%, 49%0.588 0.099 245.7Black 5.1:1dodgerblue (8.4)
tan#D2B48C210, 180, 14034, 44%, 69%0.786 0.064 74.6Black 10.7:1burlywood (3.1)
teal#0080800, 128, 128180, 100%, 25%0.543 0.093 194.8White 4.8:1darkcyan (4.0)
thistle#D8BFD8216, 191, 216300, 24%, 80%0.833 0.044 326Black 12.4:1pink (11.2)
tomato#FF6347255, 99, 719, 100%, 64%0.696 0.196 32.3Black 7.1:1coral (7.1)
turquoise#40E0D064, 224, 208174, 72%, 56%0.822 0.131 185.1Black 12.8:1mediumturquoise (5.0)
violet#EE82EE238, 130, 238300, 76%, 72%0.762 0.186 327.2Black 9.1:1orchid (5.7)
wheat#F5DEB3245, 222, 17939, 77%, 83%0.909 0.061 83Black 16.0:1moccasin (2.0)
white#FFFFFF255, 255, 2550, 0%, 100%1.000 0.000 0Black 21.0:1whitesmoke (2.0)
whitesmoke#F5F5F5245, 245, 2450, 0%, 96%0.970 0.000 0Black 19.3:1white (2.0)
yellow#FFFF00255, 255, 060, 100%, 50%0.968 0.211 109.8Black 19.6:1gold (11.6)
yellowgreen#9ACD32154, 205, 5080, 61%, 50%0.785 0.184 126.6Black 11.2:1limegreen (10.9)

Use it in code

Load the CSV with pandas:

import pandas as pd

df = pd.read_csv("https://colorcodekit.com/downloads/css-named-colors.csv")
print(df[df.best_text == "#FFFFFF"].head())

Or fetch the JSON in the browser or in Node:

const res = await fetch("https://colorcodekit.com/downloads/css-named-colors.json");
const { colors } = await res.json();
const darks = colors.filter(c => c.best_text === "#FFFFFF");

Method and source

Names and RGB values come from section 6.1 of the W3C CSS Color Module Level 4. HSL uses the standard sRGB conversion. OKLCH uses the matrices published by Björn Ottosson. Contrast follows the WCAG 2.2 relative luminance formula. Distances use CIEDE2000. Every number is computed by the same code that powers the tools on this site.

How to cite

Colorcodekit.com, "CSS named colors dataset", version 2026-11-18, https://colorcodekit.com/open-data/, CC0 1.0.

Frequently asked questions

Can I use this color dataset in my own project?

Yes. The computed columns are released under CC0 1.0, so you can use, change and redistribute them for any purpose with no permission needed. A link back to this page is welcome but not required. The names and RGB values come from the W3C CSS Color specification, which defines them as facts of the language.

How many named colors does CSS have?

CSS defines 148 named colors. 18 of them share a value with another name, such as aqua and cyan, or gray and grey. The same_hex_as column marks these, so you can keep one spelling of each if you need unique values.

How is the nearest color calculated?

Each color is compared with the other named colors using CIEDE2000, the standard formula for how different two colors look to a person. Colors with the same hex are skipped so that aliases do not hide the real neighbor.

Why are the CMYK values not print values?

They are a direct arithmetic conversion from RGB. Real print color depends on the ink, the paper and the printer profile, so use them as a starting point and check a proof.

How often is the dataset updated?

The CSS named color list is stable and has not changed in years, so the file changes only when we add a column or fix a value. The current version is dated 2026-11-18.

Content updated