HSL to HEX: #E4E4E7

Also known as: Tailwind zinc-200, Tailwind v3 zinc-200

Result

hsl(240.00 5.88% 90.00%) → #E4E4E7

Values are shown at full precision, so converting back gives exactly #e4e4e7. 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. 1. input

    H = 240.00°, S = 5.88%, L = 90.00%
  2. 2. C

    C = (1 − |2L − 1|) × S = 0.01176
  3. 3. X

    X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.00000   (H / 60° = 4.0000, sector 4)
  4. 4. m

    m = L − C / 2 = 0.89412
  5. 5. (R′, G′, B′) + m

    (R′, G′, B′) = (0.00000, 0.00000, 0.01176)
    R = round((0.00000 + 0.89412) × 255) = 228
    G = round((0.00000 + 0.89412) × 255) = 228
    B = round((0.01176 + 0.89412) × 255) = 231
  6. 6. RGB → HEX

    #E4E4E7

All formats

HEX
#e4e4e7
RGB
rgb(228 228 231)
RGB (legacy)
rgb(228, 228, 231)
HSL
hsl(240.00 5.88% 90.00%) → hsl(240 6% 90%)
HWB
hwb(240 89% 9%)
OKLCH
oklch(0.920 0.004 286.3) · oklch(92.0% 0.004 286.3)
OKLab
oklab(0.920 0.001 -0.004)
Lab (D50)
lab(90.65 0.40 -1.47)
LCH (D50)
lch(90.65 1.52 285.35)
Display P3
color(display-p3 0.8941 0.8941 0.9048)
Linear sRGB
color(srgb-linear 0.7758 0.7758 0.7991)

Gamut: sRGB and Display P3

#E4E4E7 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.040 and Display P3 reaches 0.045; this color uses 10% of the sRGB chroma available.

CSS snippets

.element {
  color: #e4e4e7;
  color: rgb(228 228 231);
  color: hsl(240 6% 90%);
  color: oklch(0.920 0.004 286.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.920 0.004 286.3);
}
/* arbitrary values */
class="text-[#e4e4e7] bg-[oklch(0.920_0.004_286.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.8941 0.8941 0.9048); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #e4e4e7 calc(l - 0.1) c h); }

Nearby colors

Closest colors in the Tailwind and CSS named palettes (OKLab distance).

Lighter and darker, same hue and chroma

  • #F8F8FB · oklch(0.980 0.004 286.3) · ΔL +0.06
  • #D0D0D3 · oklch(0.860 0.004 286.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?