HEX to RGB: #5EA500

Also known as: Tailwind lime-600

Result

#5EA500 → rgb(94 165 0)

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. HEX → pairs

    #5EA500 → 5E | A5 | 00
  2. 2. base 16 → base 10

    R = 5E₁₆ = 5×16 + 14 = 94
    G = A5₁₆ = 10×16 + 5 = 165
    B = 00₁₆ = 0×16 + 0 = 0
  3. 3. RGB

    rgb(94 165 0)

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?