HEX to OKLCH: #475569

Also known as: Tailwind v3 slate-600

Result

#475569 → oklch(0.446 0.037 257.3)

Values are shown at full precision, so converting back gives exactly #475569. 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: 71/255 = 0.27843 → 0.063010  (((x + 0.055) / 1.055)^2.4)
    G: 85/255 = 0.33333 → 0.090842  (((x + 0.055) / 1.055)^2.4)
    B: 105/255 = 0.41176 → 0.141263  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.081963
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.090359
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.120149
  3. 3. cube root

    l′ = ∛0.081963 = 0.434383
    m′ = ∛0.090359 = 0.448736
    s′ = ∛0.120149 = 0.493446
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.03745
    H = atan2(b, a) = 257.281°
    L = 0.44553
  6. 6. OKLCH

    oklch(0.44553 0.03745 257.281)
    rounded: oklch(0.446 0.037 257.3)

All formats

HEX
#475569
RGB
rgb(71 85 105)
RGB (legacy)
rgb(71, 85, 105)
HSL
hsl(215.29 19.32% 34.51%) → hsl(215 19% 35%)
HWB
hwb(215 28% 59%)
OKLCH
oklch(0.446 0.037 257.3) · oklch(44.6% 0.037 257.3)
OKLab
oklab(0.446 -0.008 -0.037)
Lab (D50)
lab(35.54 -1.67 -13.49)
LCH (D50)
lch(35.54 13.59 262.92)
Display P3
color(display-p3 0.2891 0.3317 0.4048)
Linear sRGB
color(srgb-linear 0.0630 0.0908 0.1413)

Gamut: sRGB and Display P3

#475569 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.160 and Display P3 reaches 0.203; this color uses 23% of the sRGB chroma available.

CSS snippets

.element {
  color: #475569;
  color: rgb(71 85 105);
  color: hsl(215 19% 35%);
  color: oklch(0.446 0.037 257.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.446 0.037 257.3);
}
/* arbitrary values */
class="text-[#475569] bg-[oklch(0.446_0.037_257.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2891 0.3317 0.4048); }
}

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

  • #57667B · oklch(0.506 0.037 257.3) · ΔL +0.06
  • #374558 · oklch(0.386 0.037 257.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?