HEX to HSL: #CCFBF1

Also known as: Tailwind v3 teal-100

Result

#CCFBF1 → hsl(167 85% 89%)

Values are shown at full precision, so converting back gives exactly #ccfbf1. 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.8000
    G = 0.9843
    B = 0.9451
  2. 2. max, min, Δ

    max = 0.9843
    min = 0.8000
    Δ = max − min = 0.1843
  3. 3. L

    L = (max + min) / 2 = 0.8922 = 89.22%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.8545 = 85.45%
  5. 5. H

    max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.9451 − 0.8000) / 0.1843 + 2) = 167.23°
  6. 6. HSL

    hsl(167.23 85.45% 89.22%)

All formats

HEX
#ccfbf1
RGB
rgb(204 251 241)
RGB (legacy)
rgb(204, 251, 241)
HSL
hsl(167.23 85.45% 89.22%) → hsl(167 85% 89%)
HWB
hwb(167 80% 2%)
OKLCH
oklch(0.953 0.050 180.8) · oklch(95.3% 0.050 180.8)
OKLab
oklab(0.953 -0.050 -0.001)
Lab (D50)
lab(95.13 -17.01 -0.42)
LCH (D50)
lch(95.13 17.01 181.40)
Display P3
color(display-p3 0.8367 0.9789 0.9458)
Linear sRGB
color(srgb-linear 0.6038 0.9647 0.8796)

Gamut: sRGB and Display P3

#CCFBF1 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.068 and Display P3 reaches 0.077; this color uses 74% of the sRGB chroma available.

CSS snippets

.element {
  color: #ccfbf1;
  color: rgb(204 251 241);
  color: hsl(167 85% 89%);
  color: oklch(0.953 0.050 180.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.953 0.050 180.8);
}
/* arbitrary values */
class="text-[#ccfbf1] bg-[oklch(0.953_0.050_180.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.8367 0.9789 0.9458); }
}

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

  • #DCFFFF · oklch(1.000 0.050 180.8) · ΔL +0.06
  • #B9E7DD · oklch(0.893 0.050 180.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?