HEX to OKLCH: #594C5B

Also known as: Tailwind mauve-600

Result

#594C5B → oklch(0.435 0.029 321.8)

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. sRGB → linear

    R: 89/255 = 0.34902 → 0.099899  (((x + 0.055) / 1.055)^2.4)
    G: 76/255 = 0.29804 → 0.072272  (((x + 0.055) / 1.055)^2.4)
    B: 91/255 = 0.35686 → 0.104616  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.085324
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.081600
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.095088
  3. 3. cube root

    l′ = ∛0.085324 = 0.440241
    m′ = ∛0.081600 = 0.433740
    s′ = ∛0.095088 = 0.456431
  4. 4. LMS′ → Oklab

    L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.43502
    a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.02308
    b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.01818
  5. 5. Oklab → OKLCH

    C = √(a² + b²) = 0.02938
    H = atan2(b, a) = 321.775°
    L = 0.43502
  6. 6. OKLCH

    oklch(0.43502 0.02938 321.775)
    rounded: oklch(0.435 0.029 321.8)

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?