HSL to HEX: #4B5563

Also known as: Tailwind v3 gray-600

Result

hsl(215.00 13.79% 34.12%) → #4B5563

Values are shown at full precision, so converting back gives exactly #4b5563. 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 = 215.00°, S = 13.79%, L = 34.12%
  2. 2. C

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

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

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

    (R′, G′, B′) = (0.00000, 0.03921, 0.09410)
    R = round((0.00000 + 0.29415) × 255) = 75
    G = round((0.03921 + 0.29415) × 255) = 85
    B = round((0.09410 + 0.29415) × 255) = 99
  6. 6. RGB → HEX

    #4B5563

All formats

HEX
#4b5563
RGB
rgb(75 85 99)
RGB (legacy)
rgb(75, 85, 99)
HSL
hsl(215.00 13.79% 34.12%) → hsl(215 14% 34%)
HWB
hwb(215 29% 61%)
OKLCH
oklch(0.446 0.026 256.8) · oklch(44.6% 0.026 256.8)
OKLab
oklab(0.446 -0.006 -0.026)
Lab (D50)
lab(35.66 -1.46 -9.54)
LCH (D50)
lch(35.66 9.65 261.29)
Display P3
color(display-p3 0.3015 0.3321 0.3832)
Linear sRGB
color(srgb-linear 0.0704 0.0908 0.1248)

Gamut: sRGB and Display P3

#4B5563 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.157 and Display P3 reaches 0.200; this color uses 17% of the sRGB chroma available.

CSS snippets

.element {
  color: #4b5563;
  color: rgb(75 85 99);
  color: hsl(215 14% 34%);
  color: oklch(0.446 0.026 256.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.446 0.026 256.8);
}
/* arbitrary values */
class="text-[#4b5563] bg-[oklch(0.446_0.026_256.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.3015 0.3321 0.3832); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #4b5563 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

  • #5C6674 · oklch(0.506 0.026 256.8) · ΔL +0.06
  • #3B4552 · oklch(0.386 0.026 256.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?