HSL to HEX: #5EA500

Also known as: Tailwind lime-600

Result

hsl(85.82 100.00% 32.35%) → #5EA500

Values are shown at full precision, so converting back gives exactly #5ea500. 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 = 85.82°, S = 100.00%, L = 32.35%
  2. 2. C

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

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

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

    (R′, G′, B′) = (0.36857, 0.64700, 0.00000)
    R = round((0.36857 + 0.00000) × 255) = 94
    G = round((0.64700 + 0.00000) × 255) = 165
    B = round((0.00000 + 0.00000) × 255) = 0
  6. 6. RGB → HEX

    #5EA500

All formats

HEX
#5ea500
RGB
rgb(94 165 0)
RGB (legacy)
rgb(94, 165, 0)
HSL
hsl(85.82 100.00% 32.35%) → hsl(86 100% 32%)
HWB
hwb(86 0% 35%)
OKLCH
oklch(0.649 0.184 133.3) · oklch(64.9% 0.184 133.3)
OKLab
oklab(0.649 -0.126 0.134)
Lab (D50)
lab(61.19 -39.87 61.34)
LCH (D50)
lch(61.19 73.16 123.02)
Display P3
color(display-p3 0.4352 0.6402 0.1868)
Linear sRGB
color(srgb-linear 0.1119 0.3763 0.0000)

Gamut: sRGB and Display P3

#5EA500 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.184 and Display P3 reaches 0.216; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #5ea500;
  color: rgb(94 165 0);
  color: hsl(86 100% 32%);
  color: oklch(0.649 0.184 133.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.649 0.184 133.3);
}
/* arbitrary values */
class="text-[#5ea500] bg-[oklch(0.649_0.184_133.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4352 0.6402 0.1868); }
}

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

  • #70B82A · oklch(0.709 0.184 133.3) · ΔL +0.06
  • #4C9200 · oklch(0.589 0.184 133.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?