HEX to RGB: #00FF7F

Also known as: CSS springgreen

Result

#00FF7F → rgb(0 255 127)

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

    #00FF7F → 00 | FF | 7F
  2. 2. base 16 → base 10

    R = 00₁₆ = 0×16 + 0 = 0
    G = FF₁₆ = 15×16 + 15 = 255
    B = 7F₁₆ = 7×16 + 15 = 127
  3. 3. RGB

    rgb(0 255 127)

All formats

HEX
#00ff7f
RGB
rgb(0 255 127)
RGB (legacy)
rgb(0, 255, 127)
HSL
hsl(149.88 100.00% 50.00%) → hsl(150 100% 50%)
HWB
hwb(150 0% 0%)
OKLCH
oklch(0.875 0.235 151.0) · oklch(87.5% 0.235 151.0)
OKLab
oklab(0.875 -0.206 0.114)
Lab (D50)
lab(88.44 -72.50 45.98)
LCH (D50)
lch(88.44 85.85 147.62)
Display P3
color(display-p3 0.4584 0.9853 0.5523)
Linear sRGB
color(srgb-linear 0.0000 1.0000 0.2122)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #00ff7f;
  color: rgb(0 255 127);
  color: hsl(150 100% 50%);
  color: oklch(0.875 0.235 151.0);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.875 0.235 151.0);
}
/* arbitrary values */
class="text-[#00ff7f] bg-[oklch(0.875_0.235_151.0)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4584 0.9853 0.5523); }
}

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

  • #3FFF93 · oklch(0.935 0.235 151.0) · ΔL +0.06
  • #00EA6C · oklch(0.815 0.235 151.0) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?