OKLCH to HEX: #62748E

Also known as: Tailwind slate-500

Result

oklch(0.55416 0.04599 257.526) → #62748E

Values are shown at full precision, so converting back gives exactly #62748e. 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.55416 0.04599 257.526)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.00993
    b = C·sin H = -0.04490
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.540532
    m′ = L − 0.1056·a − 0.0639·b = 0.558076
    s′ = L − 0.0895·a − 1.2915·b = 0.613042
  4. 4. cube

    l = 0.540532³ = 0.157930
    m = 0.558076³ = 0.173812
    s = 0.613042³ = 0.230394
  5. 5. LMS → linear sRGB

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

    R = 0.38431 × 255 = 98.00 → 98
    G = 0.45490 × 255 = 116.00 → 116
    B = 0.55686 × 255 = 142.00 → 142
  7. 7. RGB → HEX

    #62748E

All formats

HEX
#62748e
RGB
rgb(98 116 142)
RGB (legacy)
rgb(98, 116, 142)
HSL
hsl(215.45 18.33% 47.06%) → hsl(215 18% 47%)
HWB
hwb(215 38% 44%)
OKLCH
oklch(0.554 0.046 257.5) · oklch(55.4% 0.046 257.5)
OKLab
oklab(0.554 -0.010 -0.045)
Lab (D50)
lab(48.11 -2.01 -16.58)
LCH (D50)
lch(48.11 16.71 263.10)
Display P3
color(display-p3 0.3980 0.4528 0.5478)
Linear sRGB
color(srgb-linear 0.1221 0.1746 0.2705)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #62748e;
  color: rgb(98 116 142);
  color: hsl(215 18% 47%);
  color: oklch(0.554 0.046 257.5);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.554 0.046 257.5);
}
/* arbitrary values */
class="text-[#62748e] bg-[oklch(0.554_0.046_257.5)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.3980 0.4528 0.5478); }
}

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

  • #7386A0 · oklch(0.614 0.046 257.5) · ΔL +0.06
  • #51637C · oklch(0.494 0.046 257.5) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?