HEX to HSL: #032E15

Also known as: Tailwind green-950

Result

#032E15 → hsl(145 88% 10%)

Values are shown at full precision, so converting back gives exactly #032e15. 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.0118
    G = 0.1804
    B = 0.0824
  2. 2. max, min, Δ

    max = 0.1804
    min = 0.0118
    Δ = max − min = 0.1686
  3. 3. L

    L = (max + min) / 2 = 0.0961 = 9.61%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.8776 = 87.76%
  5. 5. H

    max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.0824 − 0.0118) / 0.1686 + 2) = 145.12°
  6. 6. HSL

    hsl(145.12 87.76% 9.61%)

All formats

HEX
#032e15
RGB
rgb(3 46 21)
RGB (legacy)
rgb(3, 46, 21)
HSL
hsl(145.12 87.76% 9.61%) → hsl(145 88% 10%)
HWB
hwb(145 1% 82%)
OKLCH
oklch(0.265 0.065 152.8) · oklch(26.5% 0.065 152.8)
OKLab
oklab(0.265 -0.058 0.030)
Lab (D50)
lab(15.61 -20.43 11.82)
LCH (D50)
lch(15.61 23.60 149.93)
Display P3
color(display-p3 0.0666 0.1772 0.0920)
Linear sRGB
color(srgb-linear 0.0009 0.0273 0.0075)

Gamut: sRGB and Display P3

#032E15 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.069 and Display P3 reaches 0.095; this color uses 95% of the sRGB chroma available.

CSS snippets

.element {
  color: #032e15;
  color: rgb(3 46 21);
  color: hsl(145 88% 10%);
  color: oklch(0.265 0.065 152.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.265 0.065 152.8);
}
/* arbitrary values */
class="text-[#032e15] bg-[oklch(0.265_0.065_152.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.0666 0.1772 0.0920); }
}

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

  • #153E24 · oklch(0.325 0.065 152.8) · ΔL +0.06
  • #001F07 · oklch(0.205 0.065 152.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?