OKLCH to HEX: #45556C

Also known as: Tailwind slate-600

Result

oklch(0.44539 0.04300 257.421) → #45556C

Values are shown at full precision, so converting back gives exactly #45556c. 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.44539 0.04300 257.421)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.00936
    b = C·sin H = -0.04197
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.432622
    m′ = L − 0.1056·a − 0.0639·b = 0.449058
    s′ = L − 0.0895·a − 1.2915·b = 0.500429
  4. 4. cube

    l = 0.432622³ = 0.080970
    m = 0.449058³ = 0.090554
    s = 0.500429³ = 0.125322
  5. 5. LMS → linear sRGB

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

    R = 0.27059 × 255 = 69.00 → 69
    G = 0.33334 × 255 = 85.00 → 85
    B = 0.42354 × 255 = 108.00 → 108
  7. 7. RGB → HEX

    #45556C

All formats

HEX
#45556c
RGB
rgb(69 85 108)
RGB (legacy)
rgb(69, 85, 108)
HSL
hsl(215.38 22.03% 34.71%) → hsl(215 22% 35%)
HWB
hwb(215 27% 58%)
OKLCH
oklch(0.445 0.043 257.4) · oklch(44.5% 0.043 257.4)
OKLab
oklab(0.445 -0.009 -0.042)
Lab (D50)
lab(35.49 -1.71 -15.44)
LCH (D50)
lch(35.49 15.53 263.67)
Display P3
color(display-p3 0.2829 0.3315 0.4157)
Linear sRGB
color(srgb-linear 0.0595 0.0908 0.1500)

Gamut: sRGB and Display P3

#45556C is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.161 and Display P3 reaches 0.204; this color uses 27% of the sRGB chroma available.

CSS snippets

.element {
  color: #45556c;
  color: rgb(69 85 108);
  color: hsl(215 22% 35%);
  color: oklch(0.445 0.043 257.4);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.445 0.043 257.4);
}
/* arbitrary values */
class="text-[#45556c] bg-[oklch(0.445_0.043_257.4)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2829 0.3315 0.4157); }
}

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

  • #55667E · oklch(0.505 0.043 257.4) · ΔL +0.06
  • #35455B · oklch(0.385 0.043 257.4) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?