OKLCH to HEX: #594C5B

Also known as: Tailwind mauve-600

Result

oklch(0.43502 0.02938 321.775) → #594C5B

Values are shown at full precision, so converting back gives exactly #594c5b. 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.43502 0.02938 321.775)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.02308
    b = C·sin H = -0.01818
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.440245
    m′ = L − 0.1056·a − 0.0639·b = 0.433744
    s′ = L − 0.0895·a − 1.2915·b = 0.456432
  4. 4. cube

    l = 0.440245³ = 0.085326
    m = 0.433744³ = 0.081602
    s = 0.456432³ = 0.095089
  5. 5. LMS → linear sRGB

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

    R = 0.34902 × 255 = 89.00 → 89
    G = 0.29805 × 255 = 76.00 → 76
    B = 0.35686 × 255 = 91.00 → 91
  7. 7. RGB → HEX

    #594C5B

All formats

HEX
#594c5b
RGB
rgb(89 76 91)
RGB (legacy)
rgb(89, 76, 91)
HSL
hsl(292.00 8.98% 32.75%) → hsl(292 9% 33%)
HWB
hwb(292 30% 64%)
OKLCH
oklch(0.435 0.029 321.8) · oklch(43.5% 0.029 321.8)
OKLab
oklab(0.435 0.023 -0.018)
Lab (D50)
lab(34.06 7.92 -6.74)
LCH (D50)
lch(34.06 10.41 319.60)
Display P3
color(display-p3 0.3406 0.2999 0.3529)
Linear sRGB
color(srgb-linear 0.0999 0.0723 0.1046)

Gamut: sRGB and Display P3

#594C5B is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.207 and Display P3 reaches 0.224; this color uses 14% of the sRGB chroma available.

CSS snippets

.element {
  color: #594c5b;
  color: rgb(89 76 91);
  color: hsl(292 9% 33%);
  color: oklch(0.435 0.029 321.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.435 0.029 321.8);
}
/* arbitrary values */
class="text-[#594c5b] bg-[oklch(0.435_0.029_321.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.3406 0.2999 0.3529); }
}

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

  • #6A5D6C · oklch(0.495 0.029 321.8) · ΔL +0.06
  • #493C4B · oklch(0.375 0.029 321.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?