HEX to RGB: #9ACD32

Also known as: CSS yellowgreen

Result

#9ACD32 → rgb(154 205 50)

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

    #9ACD32 → 9A | CD | 32
  2. 2. base 16 → base 10

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

    rgb(154 205 50)

All formats

HEX
#9acd32
RGB
rgb(154 205 50)
RGB (legacy)
rgb(154, 205, 50)
HSL
hsl(79.74 60.78% 50.00%) → hsl(80 61% 50%)
HWB
hwb(80 20% 20%)
OKLCH
oklch(0.785 0.184 126.6) · oklch(78.5% 0.184 126.6)
OKLab
oklab(0.785 -0.110 0.147)
Lab (D50)
lab(76.77 -33.10 65.63)
LCH (D50)
lch(76.77 73.50 116.76)
Display P3
color(display-p3 0.6454 0.7983 0.3109)
Linear sRGB
color(srgb-linear 0.3231 0.6105 0.0319)

Gamut: sRGB and Display P3

#9ACD32 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.201 and Display P3 reaches 0.235; this color uses 91% of the sRGB chroma available.

CSS snippets

.element {
  color: #9acd32;
  color: rgb(154 205 50);
  color: hsl(80 61% 50%);
  color: oklch(0.785 0.184 126.6);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.785 0.184 126.6);
}
/* arbitrary values */
class="text-[#9acd32] bg-[oklch(0.785_0.184_126.6)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.6454 0.7983 0.3109); }
}

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

  • #ADE14B · oklch(0.845 0.184 126.6) · ΔL +0.06
  • #88B90B · oklch(0.725 0.184 126.6) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?