HEX to HSL: #DCFCE7

Also known as: Tailwind green-100, Tailwind v3 green-100

Result

#DCFCE7 → hsl(141 84% 93%)

Values are shown at full precision, so converting back gives exactly #dcfce7. 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.8627
    G = 0.9882
    B = 0.9059
  2. 2. max, min, Δ

    max = 0.9882
    min = 0.8627
    Δ = max − min = 0.1255
  3. 3. L

    L = (max + min) / 2 = 0.9255 = 92.55%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.8421 = 84.21%
  5. 5. H

    max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.9059 − 0.8627) / 0.1255 + 2) = 140.62°
  6. 6. HSL

    hsl(140.62 84.21% 92.55%)

All formats

HEX
#dcfce7
RGB
rgb(220 252 231)
RGB (legacy)
rgb(220, 252, 231)
HSL
hsl(140.62 84.21% 92.55%) → hsl(141 84% 93%)
HWB
hwb(141 86% 1%)
OKLCH
oklch(0.962 0.043 156.7) · oklch(96.2% 0.043 156.7)
OKLab
oklab(0.962 -0.040 0.017)
Lab (D50)
lab(96.23 -13.65 6.43)
LCH (D50)
lch(96.23 15.09 154.77)
Display P3
color(display-p3 0.8868 0.9844 0.9115)
Linear sRGB
color(srgb-linear 0.7157 0.9734 0.7991)

Gamut: sRGB and Display P3

#DCFCE7 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.058 and Display P3 reaches 0.064; this color uses 75% of the sRGB chroma available.

CSS snippets

.element {
  color: #dcfce7;
  color: rgb(220 252 231);
  color: hsl(141 84% 93%);
  color: oklch(0.962 0.043 156.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.962 0.043 156.7);
}
/* arbitrary values */
class="text-[#dcfce7] bg-[oklch(0.962_0.043_156.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.8868 0.9844 0.9115); }
}

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

  • #E8FFF3 · oklch(1.000 0.043 156.7) · ΔL +0.06
  • #C8E8D3 · oklch(0.902 0.043 156.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?