HEX to HSL: #96F7E4

Also known as: Tailwind teal-200

Result

#96F7E4 → hsl(168 86% 78%)

Values are shown at full precision, so converting back gives exactly #96f7e4. 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. RGB ÷ 255

    R = 0.5882
    G = 0.9686
    B = 0.8941
  2. 2. max, min, Δ

    max = 0.9686
    min = 0.5882
    Δ = max − min = 0.3804
  3. 3. L

    L = (max + min) / 2 = 0.7784 = 77.84%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.8584 = 85.84%
  5. 5. H

    max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.8941 − 0.5882) / 0.3804 + 2) = 168.25°
  6. 6. HSL

    hsl(168.25 85.84% 77.84%)

All formats

HEX
#96f7e4
RGB
rgb(150 247 228)
RGB (legacy)
rgb(150, 247, 228)
HSL
hsl(168.25 85.84% 77.84%) → hsl(168 86% 78%)
HWB
hwb(168 59% 3%)
OKLCH
oklch(0.911 0.096 180.1) · oklch(91.1% 0.096 180.1)
OKLab
oklab(0.911 -0.096 0.000)
Lab (D50)
lab(90.86 -33.20 -0.34)
LCH (D50)
lch(90.86 33.20 180.59)
Display P3
color(display-p3 0.6770 0.9590 0.8957)
Linear sRGB
color(srgb-linear 0.3050 0.9301 0.7758)

Gamut: sRGB and Display P3

#96F7E4 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.136 and Display P3 reaches 0.155; this color uses 71% of the sRGB chroma available.

CSS snippets

.element {
  color: #96f7e4;
  color: rgb(150 247 228);
  color: hsl(168 86% 78%);
  color: oklch(0.911 0.096 180.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.911 0.096 180.1);
}
/* arbitrary values */
class="text-[#96f7e4] bg-[oklch(0.911_0.096_180.1)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.6770 0.9590 0.8957); }
}

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

  • #AAFFF8 · oklch(0.971 0.096 180.1) · ΔL +0.06
  • #82E3D0 · oklch(0.851 0.096 180.1) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?