HSL to HEX: #05DF72

Also known as: Tailwind green-400

Result

hsl(150.00 95.61% 44.71%) → #05DF72

Values are shown at full precision, so converting back gives exactly #05df72. 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. input

    H = 150.00°, S = 95.61%, L = 44.71%
  2. 2. C

    C = (1 − |2L − 1|) × S = 0.85494
  3. 3. X

    X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.42747   (H / 60° = 2.5000, sector 2)
  4. 4. m

    m = L − C / 2 = 0.01963
  5. 5. (R′, G′, B′) + m

    (R′, G′, B′) = (0.00000, 0.85494, 0.42747)
    R = round((0.00000 + 0.01963) × 255) = 5
    G = round((0.85494 + 0.01963) × 255) = 223
    B = round((0.42747 + 0.01963) × 255) = 114
  6. 6. RGB → HEX

    #05DF72

All formats

HEX
#05df72
RGB
rgb(5 223 114)
RGB (legacy)
rgb(5, 223, 114)
HSL
hsl(150.00 95.61% 44.71%) → hsl(150 96% 45%)
HWB
hwb(150 2% 13%)
OKLCH
oklch(0.791 0.209 151.7) · oklch(79.1% 0.209 151.7)
OKLab
oklab(0.791 -0.184 0.099)
Lab (D50)
lab(78.43 -64.91 39.84)
LCH (D50)
lch(78.43 76.17 148.46)
Display P3
color(display-p3 0.3991 0.8616 0.4919)
Linear sRGB
color(srgb-linear 0.0015 0.7379 0.1683)

Gamut: sRGB and Display P3

#05DF72 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.210 and Display P3 reaches 0.292; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #05df72;
  color: rgb(5 223 114);
  color: hsl(150 96% 45%);
  color: oklch(0.791 0.209 151.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.791 0.209 151.7);
}
/* arbitrary values */
class="text-[#05df72] bg-[oklch(0.791_0.209_151.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.3991 0.8616 0.4919); }
}

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

  • #3AF385 · oklch(0.851 0.209 151.7) · ΔL +0.06
  • #00CB5F · oklch(0.731 0.209 151.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?