HEX to RGB: #32CD32

Also known as: CSS limegreen

Result

#32CD32 → rgb(50 205 50)

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

    #32CD32 → 32 | CD | 32
  2. 2. base 16 → base 10

    R = 32₁₆ = 3×16 + 2 = 50
    G = CD₁₆ = 12×16 + 13 = 205
    B = 32₁₆ = 3×16 + 2 = 50
  3. 3. RGB

    rgb(50 205 50)

All formats

HEX
#32cd32
RGB
rgb(50 205 50)
RGB (legacy)
rgb(50, 205, 50)
HSL
hsl(120.00 60.78% 50.00%) → hsl(120 61% 50%)
HWB
hwb(120 20% 20%)
OKLCH
oklch(0.742 0.229 142.8) · oklch(74.2% 0.229 142.8)
OKLab
oklab(0.742 -0.182 0.138)
Lab (D50)
lab(72.67 -61.87 60.06)
LCH (D50)
lch(72.67 86.22 135.85)
Display P3
color(display-p3 0.4025 0.7926 0.3011)
Linear sRGB
color(srgb-linear 0.0319 0.6105 0.0319)

Gamut: sRGB and Display P3

#32CD32 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.250 and Display P3 reaches 0.300; this color uses 92% of the sRGB chroma available.

CSS snippets

.element {
  color: #32cd32;
  color: rgb(50 205 50);
  color: hsl(120 61% 50%);
  color: oklch(0.742 0.229 142.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.742 0.229 142.8);
}
/* arbitrary values */
class="text-[#32cd32] bg-[oklch(0.742_0.229_142.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4025 0.7926 0.3011); }
}

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

  • #4DE14A · oklch(0.802 0.229 142.8) · ΔL +0.06
  • #03B910 · oklch(0.682 0.229 142.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?