HEX to OKLCH: #5EEAD4

Also known as: Tailwind v3 teal-300

Result

#5EEAD4 → oklch(0.855 0.125 181.1)

Values are shown at full precision, so converting back gives exactly #5eead4. 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: 94/255 = 0.36863 → 0.111932  (((x + 0.055) / 1.055)^2.4)
    G: 234/255 = 0.91765 → 0.822786  (((x + 0.055) / 1.055)^2.4)
    B: 212/255 = 0.83137 → 0.658375  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.521298
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.654496
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.656440
  3. 3. cube root

    l′ = ∛0.521298 = 0.804814
    m′ = ∛0.654496 = 0.868232
    s′ = ∛0.656440 = 0.869091
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.12508
    H = atan2(b, a) = 181.071°
    L = 0.85488
  6. 6. OKLCH

    oklch(0.85488 0.12508 181.071)
    rounded: oklch(0.855 0.125 181.1)

All formats

HEX
#5eead4
RGB
rgb(94 234 212)
RGB (legacy)
rgb(94, 234, 212)
HSL
hsl(170.57 76.92% 64.31%) → hsl(171 77% 64%)
HWB
hwb(171 37% 8%)
OKLCH
oklch(0.855 0.125 181.1) · oklch(85.5% 0.125 181.1)
OKLab
oklab(0.855 -0.125 -0.002)
Lab (D50)
lab(84.72 -43.50 -1.22)
LCH (D50)
lch(84.72 43.52 181.60)
Display P3
color(display-p3 0.5252 0.9059 0.8328)
Linear sRGB
color(srgb-linear 0.1119 0.8228 0.6584)

Gamut: sRGB and Display P3

#5EEAD4 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.154 and Display P3 reaches 0.209; this color uses 81% of the sRGB chroma available.

CSS snippets

.element {
  color: #5eead4;
  color: rgb(94 234 212);
  color: hsl(171 77% 64%);
  color: oklch(0.855 0.125 181.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.855 0.125 181.1);
}
/* arbitrary values */
class="text-[#5eead4] bg-[oklch(0.855_0.125_181.1)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.5252 0.9059 0.8328); }
}

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

  • #75FEE8 · oklch(0.915 0.125 181.1) · ΔL +0.06
  • #46D6C1 · oklch(0.795 0.125 181.1) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?