HEX to OKLCH: #2DD4BF

Also known as: Tailwind v3 teal-400

Result

#2DD4BF → oklch(0.785 0.133 181.9)

Values are shown at full precision, so converting back gives exactly #2dd4bf. 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: 45/255 = 0.17647 → 0.026241  (((x + 0.055) / 1.055)^2.4)
    G: 212/255 = 0.83137 → 0.658375  (((x + 0.055) / 1.055)^2.4)
    B: 191/255 = 0.74902 → 0.520996  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.390728
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.509669
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.516010
  3. 3. cube root

    l′ = ∛0.390728 = 0.731069
    m′ = ∛0.509669 = 0.798784
    s′ = ∛0.516010 = 0.802083
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.13253
    H = atan2(b, a) = 181.912°
    L = 0.78452
  6. 6. OKLCH

    oklch(0.78452 0.13253 181.912)
    rounded: oklch(0.785 0.133 181.9)

All formats

HEX
#2dd4bf
RGB
rgb(45 212 191)
RGB (legacy)
rgb(45, 212, 191)
HSL
hsl(172.46 66.01% 50.39%) → hsl(172 66% 50%)
HWB
hwb(172 18% 17%)
OKLCH
oklch(0.785 0.133 181.9) · oklch(78.5% 0.133 181.9)
OKLab
oklab(0.785 -0.132 -0.004)
Lab (D50)
lab(76.64 -46.24 -2.00)
LCH (D50)
lch(76.64 46.29 182.48)
Display P3
color(display-p3 0.4079 0.8195 0.7500)
Linear sRGB
color(srgb-linear 0.0262 0.6584 0.5210)

Gamut: sRGB and Display P3

#2DD4BF is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.141 and Display P3 reaches 0.190; this color uses 94% of the sRGB chroma available.

CSS snippets

.element {
  color: #2dd4bf;
  color: rgb(45 212 191);
  color: hsl(172 66% 50%);
  color: oklch(0.785 0.133 181.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.785 0.133 181.9);
}
/* arbitrary values */
class="text-[#2dd4bf] bg-[oklch(0.785_0.133_181.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4079 0.8195 0.7500); }
}

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

  • #4BE8D2 · oklch(0.845 0.133 181.9) · ΔL +0.06
  • #00C0AC · oklch(0.725 0.133 181.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?