CSS named color

Lime #00FF00

lime rgb(0, 255, 0)

Lime is a vivid green with the hex code #00FF00, which converts to rgb(0, 255, 0). Open #00FF00 in the converter to tweak it.

Lime color values

HEX#00FF00
HEX (shorthand)#0F0
RGBrgb(0, 255, 0)
RGBArgba(0, 255, 0, 1)
8-digit HEX#00FF00FF
HSLhsl(120, 100%, 50%)
HSV / HSB120°, 100%, 100%
CMYK100%, 0%, 100%, 0%
RGB 0–10, 1, 0
Decimal65280
CSS keywordlime

How #00FF00 converts to RGB

Split the hex code into three pairs and read each pair as a base-16 number: 00 → 0, FF → 255, 00 → 0. That gives rgb(0, 255, 0). The step-by-step guide explains the math.

Shades of Lime

Mixed toward black in 10% steps. Click a swatch to copy its hex.

Tints of Lime

Mixed toward white in 10% steps.

Color harmonies

Hue rotations of Lime on the HSL color wheel, keeping saturation and lightness fixed. The color harmony guide explains when each scheme works.

Complementary

Analogous

Split-complementary

Triadic

Tetradic (square)

Contrast and accessibility

TextBackgroundRatioWCAG 2.x
White Lime 1.37:1Fail
Black Lime 15.30:1AAA

Use black text on a lime background. Test any other pair in the contrast checker; thresholds are explained in the WCAG contrast guide.

Use Lime in CSS

.element {
  color: lime;                         /* keyword */
  background-color: #00FF00;            /* hex */
  border-color: rgb(0 255 0 / 50%);    /* 50% transparent */
}

Need it semi-transparent? Append an alpha byte: #00FF0080 is Lime at 50% opacity. See RGBA & transparency.

Similar named colors

FAQ

What is the HEX code for Lime?

The CSS named color lime is #00FF00 in hexadecimal. In CSS you can write color: lime; or color: #00FF00; — both produce the same pixel.

What is Lime in RGB?

Lime is rgb(0, 255, 0): red 0, green 255, blue 0 on the 0–255 scale. As normalized 0–1 floats that is (0, 1, 0).

Is white or black text more readable on Lime?

Black text is more readable. White on #00FF00 has a contrast ratio of 1.37:1 (Fail), black on #00FF00 has 15.30:1 (AAA). WCAG AA needs 4.5:1 for normal text.

Copied!