HSL to HEX: #E5E7EB
Also known as: Tailwind gray-200, Tailwind v3 gray-200
Result
hsl(220.00 13.04% 90.98%) → #E5E7EB
Values are shown at full precision, so converting back gives exactly #e5e7eb. The rounded form is what you normally paste into CSS.
Step-by-step math
Every number below is computed from the input, nothing is looked up.
1. input
H = 220.00°, S = 13.04%, L = 90.98%
2. C
C = (1 − |2L − 1|) × S = 0.02352
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.00784 (H / 60° = 3.6667, sector 3)
4. m
m = L − C / 2 = 0.89804
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.00784, 0.02352) R = round((0.00000 + 0.89804) × 255) = 229 G = round((0.00784 + 0.89804) × 255) = 231 B = round((0.02352 + 0.89804) × 255) = 235
6. RGB → HEX
#E5E7EB
All formats
- HEX
- #e5e7eb
- RGB
- rgb(229 231 235)
- RGB (legacy)
- rgb(229, 231, 235)
- HSL
- hsl(220.00 13.04% 90.98%) → hsl(220 13% 91%)
- HWB
- hwb(220 90% 8%)
- OKLCH
- oklch(0.928 0.006 264.5) · oklch(92.8% 0.006 264.5)
- OKLab
- oklab(0.928 -0.001 -0.006)
- Lab (D50)
- lab(91.58 -0.15 -2.20)
- LCH (D50)
- lch(91.58 2.20 265.98)
- Display P3
- color(display-p3 0.8994 0.9056 0.9200)
- Linear sRGB
- color(srgb-linear 0.7835 0.7991 0.8308)
Gamut: sRGB and Display P3
#E5E7EB is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.035 and Display P3 reaches 0.038; this color uses 17% of the sRGB chroma available.
CSS snippets
.element {
color: #e5e7eb;
color: rgb(229 231 235);
color: hsl(220 13% 91%);
color: oklch(0.928 0.006 264.5);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.928 0.006 264.5);
}
/* arbitrary values */
class="text-[#e5e7eb] bg-[oklch(0.928_0.006_264.5)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8994 0.9056 0.9200); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #e5e7eb calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- mist-200#E3E7E8
- slate-200#E2E8F0
- mauve-200#E7E4E7
- neutral-200#E5E5E5
- zinc-200#E4E4E7
- stone-200#E7E5E4
- taupe-200#E8E4E3
- olive-200#E8E8E3
Lighter and darker, same hue and chroma
- #F9FBFF · oklch(0.988 0.006 264.5) · ΔL +0.06
- #D1D3D7 · oklch(0.868 0.006 264.5) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?