OKLCH to HEX: #4B5563

Also known as: Tailwind v3 gray-600

Result

oklch(0.44611 0.02631 256.802) → #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

    oklch(0.44611 0.02631 256.802)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.00601
    b = C·sin H = -0.02562
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.438201
    m′ = L − 0.1056·a − 0.0639·b = 0.448380
    s′ = L − 0.0895·a − 1.2915·b = 0.479729
  4. 4. cube

    l = 0.438201³ = 0.084144
    m = 0.448380³ = 0.090144
    s = 0.479729³ = 0.110405
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.070361
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.090840
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.124767
  6. 6. linear → sRGB, × 255

    R = 0.29412 × 255 = 75.00 → 75
    G = 0.33333 × 255 = 85.00 → 85
    B = 0.38823 × 255 = 99.00 → 99
  7. 7. 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?