TailwindPalette carries the default palette of Tailwind CSS v4.3.3: 26 families with 11 shades each,
286 colors in total. Alongside the long-standing families sit MAUVE, MIST, OLIVE and TAUPE —
four warm and cool neutrals Tailwind added to its theme, easy to miss in older colour references.
Tailwind defines these colors in oklch, so that is what the enum stores. Hex is derived on demand,
clipping to the sRGB gamut per channel the way browsers do, which reproduces the hex values Tailwind
publishes exactly.
TailwindPalette . EMERALD . shade ( 600 ) . getHexCode () ; // 009966
TailwindPalette . EMERALD . shade ( Shade . S600 ) ; // same, typed
TailwindPalette . EMERALD . base () ; // emerald-500
TailwindPalette . EMERALD . allShades () ; // 11, light to dark
TailwindShade shade = TailwindPalette . BLUE . shade ( 500 ) ;
shade . getValue () ; // blue-500
shade . getHexCodeWithLeadingHash () ; // #2b7fff
shade . getOklchColor () . getOklchCode () ; // oklch(62.3% 0.214 259.815)
shade . getFamily () ; // TailwindPalette.BLUE
shade . getShade () ; // Shade.S500
shade . toString () ; // blue-500 #2b7fff
getOklchColor() on a TailwindShade returns the source value Tailwind ships, rather than
recomputing it from the derived hex — the two differ in the last digits, and for anything emitted
into CSS the original is the one you want.
List < TailwindShade > all = TailwindPalette . all () ; // 286
TailwindShade nearest = TailwindPalette . getNearest ( " #3b82f6 " ) ; // blue-500
TailwindShade darkOnly = TailwindPalette . getNearest ( Shade . darks () , " #3b82f6 " ) ;
TailwindPalette family = TailwindPalette . randomFamily () ;
TailwindShade accent = TailwindPalette . randomShade ( Shade . mids ()) ;
More on matching and random selection in Nearest & random .
Each tile shows the Tailwind class name, the derived hex code and the oklch source value. The label
is drawn in the color isBlackContrastingColor2() returns for that background — the luminance
variant, which keeps every tile here above the WCAG AA threshold. The older
isBlackContrastingColor() would misjudge the saturated greens, teals and blues, as
Contrast works through.
red red-50 #fef2f2 oklch(97.1% 0.013 17.38)
red-100 #ffe2e2 oklch(93.6% 0.032 17.717)
red-200 #ffc9c9 oklch(88.5% 0.062 18.334)
red-300 #ffa2a2 oklch(80.8% 0.114 19.571)
red-400 #ff6467 oklch(70.4% 0.191 22.216)
red-500 #fb2c36 oklch(63.7% 0.237 25.331)
red-600 #e7000b oklch(57.7% 0.245 27.325)
red-700 #c10007 oklch(50.5% 0.213 27.518)
red-800 #9f0712 oklch(44.4% 0.177 26.899)
red-900 #82181a oklch(39.6% 0.141 25.723)
red-950 #460809 oklch(25.8% 0.092 26.042)
orange orange-50 #fff7ed oklch(98% 0.016 73.684)
orange-100 #ffedd4 oklch(95.4% 0.038 75.164)
orange-200 #ffd6a7 oklch(90.1% 0.076 70.697)
orange-300 #ffb86a oklch(83.7% 0.128 66.29)
orange-400 #ff8904 oklch(75% 0.183 55.934)
orange-500 #ff6900 oklch(70.5% 0.213 47.604)
orange-600 #f54900 oklch(64.6% 0.222 41.116)
orange-700 #ca3500 oklch(55.3% 0.195 38.402)
orange-800 #9f2d00 oklch(47% 0.157 37.304)
orange-900 #7e2a0c oklch(40.8% 0.123 38.172)
orange-950 #441306 oklch(26.6% 0.079 36.259)
amber amber-50 #fffbeb oklch(98.7% 0.022 95.277)
amber-100 #fef3c6 oklch(96.2% 0.059 95.617)
amber-200 #fee685 oklch(92.4% 0.12 95.746)
amber-300 #ffd230 oklch(87.9% 0.169 91.605)
amber-400 #ffb900 oklch(82.8% 0.189 84.429)
amber-500 #fe9a00 oklch(76.9% 0.188 70.08)
amber-600 #e17100 oklch(66.6% 0.179 58.318)
amber-700 #bb4d00 oklch(55.5% 0.163 48.998)
amber-800 #973c00 oklch(47.3% 0.137 46.201)
amber-900 #7b3306 oklch(41.4% 0.112 45.904)
amber-950 #461901 oklch(27.9% 0.077 45.635)
yellow yellow-50 #fefce8 oklch(98.7% 0.026 102.212)
yellow-100 #fef9c2 oklch(97.3% 0.071 103.193)
yellow-200 #fff085 oklch(94.5% 0.129 101.54)
yellow-300 #ffdf20 oklch(90.5% 0.182 98.111)
yellow-400 #fdc700 oklch(85.2% 0.199 91.936)
yellow-500 #f0b100 oklch(79.5% 0.184 86.047)
yellow-600 #d08700 oklch(68.1% 0.162 75.834)
yellow-700 #a65f00 oklch(55.4% 0.135 66.442)
yellow-800 #894b00 oklch(47.6% 0.114 61.907)
yellow-900 #733e0a oklch(42.1% 0.095 57.708)
yellow-950 #432004 oklch(28.6% 0.066 53.813)
lime lime-50 #f7fee7 oklch(98.6% 0.031 120.757)
lime-100 #ecfcca oklch(96.7% 0.067 122.328)
lime-200 #d8f999 oklch(93.8% 0.127 124.321)
lime-300 #bbf451 oklch(89.7% 0.196 126.665)
lime-400 #9ae600 oklch(84.1% 0.238 128.85)
lime-500 #7ccf00 oklch(76.8% 0.233 130.85)
lime-600 #5ea500 oklch(64.8% 0.2 131.684)
lime-700 #497d00 oklch(53.2% 0.157 131.589)
lime-800 #3c6300 oklch(45.3% 0.124 130.933)
lime-900 #35530e oklch(40.5% 0.101 131.063)
lime-950 #192e03 oklch(27.4% 0.072 132.109)
green green-50 #f0fdf4 oklch(98.2% 0.018 155.826)
green-100 #dcfce7 oklch(96.2% 0.044 156.743)
green-200 #b9f8cf oklch(92.5% 0.084 155.995)
green-300 #7bf1a8 oklch(87.1% 0.15 154.449)
green-400 #05df72 oklch(79.2% 0.209 151.711)
green-500 #00c950 oklch(72.3% 0.219 149.579)
green-600 #00a63e oklch(62.7% 0.194 149.214)
green-700 #008236 oklch(52.7% 0.154 150.069)
green-800 #016630 oklch(44.8% 0.119 151.328)
green-900 #0d542b oklch(39.3% 0.095 152.535)
green-950 #032e15 oklch(26.6% 0.065 152.934)
emerald emerald-50 #ecfdf5 oklch(97.9% 0.021 166.113)
emerald-100 #d0fae5 oklch(95% 0.052 163.051)
emerald-200 #a4f4cf oklch(90.5% 0.093 164.15)
emerald-300 #5ee9b5 oklch(84.5% 0.143 164.978)
emerald-400 #00d492 oklch(76.5% 0.177 163.223)
emerald-500 #00bc7d oklch(69.6% 0.17 162.48)
emerald-600 #009966 oklch(59.6% 0.145 163.225)
emerald-700 #007a55 oklch(50.8% 0.118 165.612)
emerald-800 #006045 oklch(43.2% 0.095 166.913)
emerald-900 #004f3b oklch(37.8% 0.077 168.94)
emerald-950 #002c22 oklch(26.2% 0.051 172.552)
teal teal-50 #f0fdfa oklch(98.4% 0.014 180.72)
teal-100 #cbfbf1 oklch(95.3% 0.051 180.801)
teal-200 #96f7e4 oklch(91% 0.096 180.426)
teal-300 #46ecd5 oklch(85.5% 0.138 181.071)
teal-400 #00d5be oklch(77.7% 0.152 181.912)
teal-500 #00bba7 oklch(70.4% 0.14 182.503)
teal-600 #009689 oklch(60% 0.118 184.704)
teal-700 #00786f oklch(51.1% 0.096 186.391)
teal-800 #005f5a oklch(43.7% 0.078 188.216)
teal-900 #0b4f4a oklch(38.6% 0.063 188.416)
teal-950 #022f2e oklch(27.7% 0.046 192.524)
cyan cyan-50 #ecfeff oklch(98.4% 0.019 200.873)
cyan-100 #cefafe oklch(95.6% 0.045 203.388)
cyan-200 #a2f4fd oklch(91.7% 0.08 205.041)
cyan-300 #53eafd oklch(86.5% 0.127 207.078)
cyan-400 #00d3f2 oklch(78.9% 0.154 211.53)
cyan-500 #00b8db oklch(71.5% 0.143 215.221)
cyan-600 #0092b8 oklch(60.9% 0.126 221.723)
cyan-700 #007595 oklch(52% 0.105 223.128)
cyan-800 #005f78 oklch(45% 0.085 224.283)
cyan-900 #104e64 oklch(39.8% 0.07 227.392)
cyan-950 #053345 oklch(30.2% 0.056 229.695)
sky sky-50 #f0f9ff oklch(97.7% 0.013 236.62)
sky-100 #dff2fe oklch(95.1% 0.026 236.824)
sky-200 #b8e6fe oklch(90.1% 0.058 230.902)
sky-300 #74d4ff oklch(82.8% 0.111 230.318)
sky-400 #00bcff oklch(74.6% 0.16 232.661)
sky-500 #00a6f4 oklch(68.5% 0.169 237.323)
sky-600 #0084d1 oklch(58.8% 0.158 241.966)
sky-700 #0069a8 oklch(50% 0.134 242.749)
sky-800 #00598a oklch(44.3% 0.11 240.79)
sky-900 #024a70 oklch(39.1% 0.09 240.876)
sky-950 #052f4a oklch(29.3% 0.066 243.157)
blue blue-50 #eff6ff oklch(97% 0.014 254.604)
blue-100 #dbeafe oklch(93.2% 0.032 255.585)
blue-200 #bedbff oklch(88.2% 0.059 254.128)
blue-300 #8ec5ff oklch(80.9% 0.105 251.813)
blue-400 #51a2ff oklch(70.7% 0.165 254.624)
blue-500 #2b7fff oklch(62.3% 0.214 259.815)
blue-600 #155dfc oklch(54.6% 0.245 262.881)
blue-700 #1447e6 oklch(48.8% 0.243 264.376)
blue-800 #193cb8 oklch(42.4% 0.199 265.638)
blue-900 #1c398e oklch(37.9% 0.146 265.522)
blue-950 #162456 oklch(28.2% 0.091 267.935)
indigo indigo-50 #eef2ff oklch(96.2% 0.018 272.314)
indigo-100 #e0e7ff oklch(93% 0.034 272.788)
indigo-200 #c6d2ff oklch(87% 0.065 274.039)
indigo-300 #a3b3ff oklch(78.5% 0.115 274.713)
indigo-400 #7c86ff oklch(67.3% 0.182 276.935)
indigo-500 #615fff oklch(58.5% 0.233 277.117)
indigo-600 #4f39f6 oklch(51.1% 0.262 276.966)
indigo-700 #432dd7 oklch(45.7% 0.24 277.023)
indigo-800 #372aac oklch(39.8% 0.195 277.366)
indigo-900 #312c85 oklch(35.9% 0.144 278.697)
indigo-950 #1e1a4d oklch(25.7% 0.09 281.288)
violet violet-50 #f5f3ff oklch(96.9% 0.016 293.756)
violet-100 #ede9fe oklch(94.3% 0.029 294.588)
violet-200 #ddd6ff oklch(89.4% 0.057 293.283)
violet-300 #c4b4ff oklch(81.1% 0.111 293.571)
violet-400 #a684ff oklch(70.2% 0.183 293.541)
violet-500 #8e51ff oklch(60.6% 0.25 292.717)
violet-600 #7f22fe oklch(54.1% 0.281 293.009)
violet-700 #7008e7 oklch(49.1% 0.27 292.581)
violet-800 #5d0ec0 oklch(43.2% 0.232 292.759)
violet-900 #4d179a oklch(38% 0.189 293.745)
violet-950 #2f0d68 oklch(28.3% 0.141 291.089)
purple purple-50 #faf5ff oklch(97.7% 0.014 308.299)
purple-100 #f3e8ff oklch(94.6% 0.033 307.174)
purple-200 #e9d4ff oklch(90.2% 0.063 306.703)
purple-300 #dab2ff oklch(82.7% 0.119 306.383)
purple-400 #c27aff oklch(71.4% 0.203 305.504)
purple-500 #ad46ff oklch(62.7% 0.265 303.9)
purple-600 #9810fa oklch(55.8% 0.288 302.321)
purple-700 #8200db oklch(49.6% 0.265 301.924)
purple-800 #6e11b0 oklch(43.8% 0.218 303.724)
purple-900 #59168b oklch(38.1% 0.176 304.987)
purple-950 #3c0366 oklch(29.1% 0.149 302.717)
fuchsia fuchsia-50 #fdf4ff oklch(97.7% 0.017 320.058)
fuchsia-100 #fae8ff oklch(95.2% 0.037 318.852)
fuchsia-200 #f6cfff oklch(90.3% 0.076 319.62)
fuchsia-300 #f4a8ff oklch(83.3% 0.145 321.434)
fuchsia-400 #ed6aff oklch(74% 0.238 322.16)
fuchsia-500 #e12afb oklch(66.7% 0.295 322.15)
fuchsia-600 #c800de oklch(59.1% 0.293 322.896)
fuchsia-700 #a800b7 oklch(51.8% 0.253 323.949)
fuchsia-800 #8a0194 oklch(45.2% 0.211 324.591)
fuchsia-900 #721378 oklch(40.1% 0.17 325.612)
fuchsia-950 #4b004f oklch(29.3% 0.136 325.661)
pink pink-50 #fdf2f8 oklch(97.1% 0.014 343.198)
pink-100 #fce7f3 oklch(94.8% 0.028 342.258)
pink-200 #fccee8 oklch(89.9% 0.061 343.231)
pink-300 #fda5d5 oklch(82.3% 0.12 346.018)
pink-400 #fb64b6 oklch(71.8% 0.202 349.761)
pink-500 #f6339a oklch(65.6% 0.241 354.308)
pink-600 #e60076 oklch(59.2% 0.249 0.584)
pink-700 #c6005c oklch(52.5% 0.223 3.958)
pink-800 #a3004c oklch(45.9% 0.187 3.815)
pink-900 #861043 oklch(40.8% 0.153 2.432)
pink-950 #510424 oklch(28.4% 0.109 3.907)
rose rose-50 #fff1f2 oklch(96.9% 0.015 12.422)
rose-100 #ffe4e6 oklch(94.1% 0.03 12.58)
rose-200 #ffccd3 oklch(89.2% 0.058 10.001)
rose-300 #ffa1ad oklch(81% 0.117 11.638)
rose-400 #ff637e oklch(71.2% 0.194 13.428)
rose-500 #ff2056 oklch(64.5% 0.246 16.439)
rose-600 #ec003f oklch(58.6% 0.253 17.585)
rose-700 #c70036 oklch(51.4% 0.222 16.935)
rose-800 #a50036 oklch(45.5% 0.188 13.697)
rose-900 #8b0836 oklch(41% 0.159 10.272)
rose-950 #4d0218 oklch(27.1% 0.105 12.094)
slate slate-50 #f8fafc oklch(98.4% 0.003 247.858)
slate-100 #f1f5f9 oklch(96.8% 0.007 247.896)
slate-200 #e2e8f0 oklch(92.9% 0.013 255.508)
slate-300 #cad5e2 oklch(86.9% 0.022 252.894)
slate-400 #90a1b9 oklch(70.4% 0.04 256.788)
slate-500 #62748e oklch(55.4% 0.046 257.417)
slate-600 #45556c oklch(44.6% 0.043 257.281)
slate-700 #314158 oklch(37.2% 0.044 257.287)
slate-800 #1d293d oklch(27.9% 0.041 260.031)
slate-900 #0f172b oklch(20.8% 0.042 265.755)
slate-950 #020618 oklch(12.9% 0.042 264.695)
gray gray-50 #f9fafb oklch(98.5% 0.002 247.839)
gray-100 #f3f4f6 oklch(96.7% 0.003 264.542)
gray-200 #e5e7eb oklch(92.8% 0.006 264.531)
gray-300 #d1d5dc oklch(87.2% 0.01 258.338)
gray-400 #99a1af oklch(70.7% 0.022 261.325)
gray-500 #6a7282 oklch(55.1% 0.027 264.364)
gray-600 #4a5565 oklch(44.6% 0.03 256.802)
gray-700 #364153 oklch(37.3% 0.034 259.733)
gray-800 #1e2939 oklch(27.8% 0.033 256.848)
gray-900 #101828 oklch(21% 0.034 264.665)
gray-950 #030712 oklch(13% 0.028 261.692)
zinc zinc-50 #fafafa oklch(98.5% 0 0)
zinc-100 #f4f4f5 oklch(96.7% 0.001 286.375)
zinc-200 #e4e4e7 oklch(92% 0.004 286.32)
zinc-300 #d4d4d8 oklch(87.1% 0.006 286.286)
zinc-400 #9f9fa9 oklch(70.5% 0.015 286.067)
zinc-500 #71717b oklch(55.2% 0.016 285.938)
zinc-600 #52525c oklch(44.2% 0.017 285.786)
zinc-700 #3f3f46 oklch(37% 0.013 285.805)
zinc-800 #27272a oklch(27.4% 0.006 286.033)
zinc-900 #18181b oklch(21% 0.006 285.885)
zinc-950 #09090b oklch(14.1% 0.005 285.823)
neutral neutral-50 #fafafa oklch(98.5% 0 0)
neutral-100 #f5f5f5 oklch(97% 0 0)
neutral-200 #e5e5e5 oklch(92.2% 0 0)
neutral-300 #d4d4d4 oklch(87% 0 0)
neutral-400 #a1a1a1 oklch(70.8% 0 0)
neutral-500 #737373 oklch(55.6% 0 0)
neutral-600 #525252 oklch(43.9% 0 0)
neutral-700 #404040 oklch(37.1% 0 0)
neutral-800 #262626 oklch(26.9% 0 0)
neutral-900 #171717 oklch(20.5% 0 0)
neutral-950 #0a0a0a oklch(14.5% 0 0)
stone stone-50 #fafaf9 oklch(98.5% 0.001 106.423)
stone-100 #f5f5f4 oklch(97% 0.001 106.424)
stone-200 #e7e5e4 oklch(92.3% 0.003 48.717)
stone-300 #d6d3d1 oklch(86.9% 0.005 56.366)
stone-400 #a6a09b oklch(70.9% 0.01 56.259)
stone-500 #79716b oklch(55.3% 0.013 58.071)
stone-600 #57534d oklch(44.4% 0.011 73.639)
stone-700 #44403b oklch(37.4% 0.01 67.558)
stone-800 #292524 oklch(26.8% 0.007 34.298)
stone-900 #1c1917 oklch(21.6% 0.006 56.043)
stone-950 #0c0a09 oklch(14.7% 0.004 49.25)
mauve mauve-50 #fafafa oklch(98.5% 0 0)
mauve-100 #f3f1f3 oklch(96% 0.003 325.6)
mauve-200 #e7e4e7 oklch(92.2% 0.005 325.62)
mauve-300 #d7d0d7 oklch(86.5% 0.012 325.68)
mauve-400 #a89ea9 oklch(71.1% 0.019 323.02)
mauve-500 #79697b oklch(54.2% 0.034 322.5)
mauve-600 #594c5b oklch(43.5% 0.029 321.78)
mauve-700 #463947 oklch(36.4% 0.029 323.89)
mauve-800 #2a212c oklch(26.3% 0.024 320.12)
mauve-900 #1d161e oklch(21.2% 0.019 322.12)
mauve-950 #0c090c oklch(14.5% 0.008 326)
olive olive-50 #fbfbf9 oklch(98.8% 0.003 106.5)
olive-100 #f4f4f0 oklch(96.6% 0.005 106.5)
olive-200 #e8e8e3 oklch(93% 0.007 106.5)
olive-300 #d8d8d0 oklch(88% 0.011 106.6)
olive-400 #abab9c oklch(73.7% 0.021 106.9)
olive-500 #7c7c67 oklch(58% 0.031 107.3)
olive-600 #5b5b4b oklch(46.6% 0.025 107.3)
olive-700 #474739 oklch(39.4% 0.023 107.4)
olive-800 #2b2b22 oklch(28.6% 0.016 107.4)
olive-900 #1d1d16 oklch(22.8% 0.013 107.4)
olive-950 #0c0c09 oklch(15.3% 0.006 107.1)
mist mist-50 #f9fbfb oklch(98.7% 0.002 197.1)
mist-100 #f1f3f3 oklch(96.3% 0.002 197.1)
mist-200 #e3e7e8 oklch(92.5% 0.005 214.3)
mist-300 #d0d6d8 oklch(87.2% 0.007 219.6)
mist-400 #9ca8ab oklch(72.3% 0.014 214.4)
mist-500 #67787c oklch(56% 0.021 213.5)
mist-600 #4b585b oklch(45% 0.017 213.2)
mist-700 #394447 oklch(37.8% 0.015 216)
mist-800 #22292b oklch(27.5% 0.011 216.9)
mist-900 #161b1d oklch(21.8% 0.008 223.9)
mist-950 #090b0c oklch(14.8% 0.004 228.8)
taupe taupe-50 #fbfaf9 oklch(98.6% 0.002 67.8)
taupe-100 #f3f1f1 oklch(96% 0.002 17.2)
taupe-200 #e8e4e3 oklch(92.2% 0.005 34.3)
taupe-300 #d8d2d0 oklch(86.8% 0.007 39.5)
taupe-400 #aba09c oklch(71.4% 0.014 41.2)
taupe-500 #7c6d67 oklch(54.7% 0.021 43.1)
taupe-600 #5b4f4b oklch(43.8% 0.017 39.3)
taupe-700 #473c39 oklch(36.7% 0.016 35.7)
taupe-800 #2b2422 oklch(26.8% 0.011 36.5)
taupe-900 #1d1816 oklch(21.4% 0.009 43.1)
taupe-950 #0c0a09 oklch(14.7% 0.004 49.3)
Colors by Tailwind Labs , MIT licensed. The four extra
neutrals were added to match, and are covered by the library’s own MIT license.