HEX to RGB: #7CCF00

Also known as: Tailwind lime-500

Result

#7CCF00 → rgb(124 207 0)

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

    #7CCF00 → 7C | CF | 00
  2. 2. base 16 → base 10

    R = 7C₁₆ = 7×16 + 12 = 124
    G = CF₁₆ = 12×16 + 15 = 207
    B = 00₁₆ = 0×16 + 0 = 0
  3. 3. RGB

    rgb(124 207 0)

All formats

HEX
#7ccf00
RGB
rgb(124 207 0)
RGB (legacy)
rgb(124, 207, 0)
HSL
hsl(84.06 100.00% 40.59%) → hsl(84 100% 41%)
HWB
hwb(84 0% 19%)
OKLCH
oklch(0.771 0.216 132.5) · oklch(77.1% 0.216 132.5)
OKLab
oklab(0.771 -0.146 0.159)
Lab (D50)
lab(75.59 -45.66 72.89)
LCH (D50)
lch(75.59 86.01 122.07)
Display P3
color(display-p3 0.5625 0.8036 0.2443)
Linear sRGB
color(srgb-linear 0.2016 0.6240 0.0000)

Gamut: sRGB and Display P3

#7CCF00 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.216 and Display P3 reaches 0.253; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #7ccf00;
  color: rgb(124 207 0);
  color: hsl(84 100% 41%);
  color: oklch(0.771 0.216 132.5);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.771 0.216 132.5);
}
/* arbitrary values */
class="text-[#7ccf00] bg-[oklch(0.771_0.216_132.5)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.5625 0.8036 0.2443); }
}

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

  • #8FE331 · oklch(0.831 0.216 132.5) · ΔL +0.06
  • #69BB00 · oklch(0.711 0.216 132.5) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?