HEX to HSL: #00C950

Also known as: Tailwind green-500

Result

#00C950 → hsl(144 100% 39%)

Values are shown at full precision, so converting back gives exactly #00c950. 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.0000
    G = 0.7882
    B = 0.3137
  2. 2. max, min, Δ

    max = 0.7882
    min = 0.0000
    Δ = max − min = 0.7882
  3. 3. L

    L = (max + min) / 2 = 0.3941 = 39.41%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
  5. 5. H

    max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.3137 − 0.0000) / 0.7882 + 2) = 143.88°
  6. 6. HSL

    hsl(143.88 100.00% 39.41%)

All formats

HEX
#00c950
RGB
rgb(0 201 80)
RGB (legacy)
rgb(0, 201, 80)
HSL
hsl(143.88 100.00% 39.41%) → hsl(144 100% 39%)
HWB
hwb(144 0% 21%)
OKLCH
oklch(0.729 0.212 147.8) · oklch(72.9% 0.212 147.8)
OKLab
oklab(0.729 -0.179 0.113)
Lab (D50)
lab(71.12 -62.56 46.81)
LCH (D50)
lch(71.12 78.13 143.19)
Display P3
color(display-p3 0.3553 0.7765 0.3739)
Linear sRGB
color(srgb-linear 0.0000 0.5841 0.0802)

Gamut: sRGB and Display P3

#00C950 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.212 and Display P3 reaches 0.297; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #00c950;
  color: rgb(0 201 80);
  color: hsl(144 100% 39%);
  color: oklch(0.729 0.212 147.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.729 0.212 147.8);
}
/* arbitrary values */
class="text-[#00c950] bg-[oklch(0.729_0.212_147.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.3553 0.7765 0.3739); }
}

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

  • #35DD64 · oklch(0.789 0.212 147.8) · ΔL +0.06
  • #00B53C · oklch(0.669 0.212 147.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?