HEX to RGB: #00C950

Also known as: Tailwind green-500

Result

#00C950 → rgb(0 201 80)

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

    #00C950 → 00 | C9 | 50
  2. 2. base 16 → base 10

    R = 00₁₆ = 0×16 + 0 = 0
    G = C9₁₆ = 12×16 + 9 = 201
    B = 50₁₆ = 5×16 + 0 = 80
  3. 3. RGB

    rgb(0 201 80)

All formats

HEX
#00c950
RGB
rgb(0 201 80)
RGB (legacy)
rgb(0, 201, 80)
HSL
hsl(143.88 100.00% 39.41%) → hsl(144 100% 39%)
HWB
hwb(144 0% 21%)
OKLCH
oklch(0.729 0.212 147.8) · oklch(72.9% 0.212 147.8)
OKLab
oklab(0.729 -0.179 0.113)
Lab (D50)
lab(71.12 -62.56 46.81)
LCH (D50)
lch(71.12 78.13 143.19)
Display P3
color(display-p3 0.3553 0.7765 0.3739)
Linear sRGB
color(srgb-linear 0.0000 0.5841 0.0802)

Gamut: sRGB and Display P3

#00C950 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.212 and Display P3 reaches 0.297; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #00c950;
  color: rgb(0 201 80);
  color: hsl(144 100% 39%);
  color: oklch(0.729 0.212 147.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.729 0.212 147.8);
}
/* arbitrary values */
class="text-[#00c950] bg-[oklch(0.729_0.212_147.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.3553 0.7765 0.3739); }
}

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

  • #35DD64 · oklch(0.789 0.212 147.8) · ΔL +0.06
  • #00B53C · oklch(0.669 0.212 147.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?