HEX to OKLCH: #32CD32

Also known as: CSS limegreen

Result

#32CD32 → oklch(0.742 0.229 142.8)

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. sRGB → linear

    R: 50/255 = 0.19608 → 0.031896  (((x + 0.055) / 1.055)^2.4)
    G: 205/255 = 0.80392 → 0.610496  (((x + 0.055) / 1.055)^2.4)
    B: 50/255 = 0.19608 → 0.031896  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.342218
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.425748
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.194898
  3. 3. cube root

    l′ = ∛0.342218 = 0.699467
    m′ = ∛0.425748 = 0.752288
    s′ = ∛0.194898 = 0.579788
  4. 4. LMS′ → Oklab

    L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.74187
    a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.18221
    b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.13813
  5. 5. Oklab → OKLCH

    C = √(a² + b²) = 0.22865
    H = atan2(b, a) = 142.835°
    L = 0.74187
  6. 6. OKLCH

    oklch(0.74187 0.22865 142.835)
    rounded: oklch(0.742 0.229 142.8)

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?