CSS named color

Lime #00FF00

The CSS keyword lime is #00FF00. It is a pale vivid green in the green family. In OKLCH it sits at lightness 0.866, chroma 0.295 and hue 142.5°.

Relative luminance
0.7152
OKLCH L · C · h
0.866 · 0.295 · 142.5
Best text
Black 15.30:1
Hue family
Green

#00FF00 color codes

HEX
#00FF00
RGB
rgb(0, 255, 0)
HSL
hsl(120, 100%, 50%)
OKLCH
oklch(0.866 0.295 142.5)
OKLab
oklab(0.866 -0.234 0.179)
CIELAB (D65)
L* 87.73, a* -86.18, b* 83.18
XYZ (D65)
X 35.76, Y 71.52, Z 11.92
CMYK (naive)
cmyk(100%, 0%, 100%, 0%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

Legibility

Contrast: is #00FF00 accessible?

Black text on it reaches 15.30:1, passing AAA. White text fails at 1.37:1.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    15.30:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +86
  • White text on it

    1.37:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc −19

    Text is here, unreadable at 1.37:1

  • As text on black

    15.30:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −86
  • As text on white

    1.37:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc +17

    Text is here, unreadable at 1.37:1

Nearest versions that pass 4.5:1

  • For text on white

    #008900 4.58:1

    Darkening its OKLCH lightness from 0.87 to 0.55 reaches 4.58:1 on white, keeping the hue.

  • For text on black

    #00FF00 15.30:1

    It already reaches 15.30:1 on black, so no change is needed.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #00FF00 live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #00FF00

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #00FF00 sits at step 200.

  1. 50#E1FFDE
    White
    1.07
    Black
    19.56
  2. 100#BFFFB9
    White
    1.15
    Black
    18.21
  3. 200This color#00FF00
    White
    1.37
    Black
    15.30
  4. 300#00E500
    White
    1.72
    Black
    12.20
  5. 400#00C400
    White
    2.36
    Black
    8.89
  6. 500#00A300
    White
    3.36
    Black
    6.23
  7. 600#008700
    White
    4.70
    Black
    4.46
  8. 700#006C00
    White
    6.67
    Black
    3.14
  9. 800#004F00
    White
    9.91
    Black
    2.11
  10. 900#003400
    White
    14.08
    Black
    1.49
  11. 950#001D00
    White
    17.86
    Black
    1.17

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #00FF00 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.295; #00FF00 uses 100% of it. Display P3, which many recent phones and laptops show, reaches 0.331 there: 12% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.295
sRGB edge
0.295
Display P3 edge
0.331
Rec. 2020 edge
0.362
Dominant wavelength
549 nm
Excitation purity
73%
Chromaticity
x 0.3000, y 0.6000
  • This color#00FF00
  • Most vivid in sRGB#00FF00
  • Most vivid in Display P3oklch(0.866 0.331 142.5)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #00ff00;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.3881 1 0.1605); }
}

Mixing

Mixing #00FF00

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#80FF80
  • OKLab50%#ADFFA6
  • OKLCH50%#B7FFB0

Black #000000

  • sRGB50%#008000
  • OKLab50%#006300
  • OKLCH50%#006300

Its complement #F7BAFF

  • sRGB50%#7CDD80
  • OKLab50%#B1E3AC
  • OKLCH50%#FFC5A1
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #00ff00, white);
color: color-mix(in oklch, #00ff00 50%, white);

In use

#00FF00 in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:115.30:1 Passes
  • Link and body-size textText, 4.5:11.37:1 Fails
  • Large headingLarge text, 3:11.37:1 Fails
  • Icons, borders and focus ringsNon-text, 3:11.37:1 Fails

For text on this page, the nearest shade that passes is #008900 4.58:1

Dark page

  • Button labelText, 4.5:115.30:1 Passes
  • Link and body-size textText, 4.5:113.65:1 Passes
  • Large headingLarge text, 3:113.65:1 Passes
  • Icons, borders and focus ringsNon-text, 3:113.65:1 Passes

Color vision

How #00FF00 looks with color blindness

Achromatopsia changes it most, ΔE2000 32.4; tritanopia changes it least, 25.8.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #FFE500 ΔE2000 28.3

    Distinct

    Reads as pale vivid yellow

  • Deuteranopia

    No working green (medium-wavelength) cones

    #EFD63A ΔE2000 28.0

    Distinct

    Reads as pale soft amber

  • Tritanopia

    No working blue (short-wavelength) cones

    #00F7D9 ΔE2000 25.8

    Distinct

    Reads as pale soft cyan

  • Achromatopsia

    No cone color vision; lightness only

    #DCDCDC ΔE2000 32.4

    Distinct

    Reads as light gray

Pairing check

Checked against its complement, #F7BAFF. Their lightness contrast is only 1.14:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#00FF00 · #F7BAFF80.6Stays distinct
Protanopia#FFE500 · #B4CAFF52.4Stays distinct
Deuteranopia#EFD63A · #C1D1FD47.5Stays distinct
Tritanopia#00F7D9 · #F9C1D259.4Stays distinct
Achromatopsia#DCDCDC · #CFCFCF3.0Easily confused

Harmony

Color harmonies for #00FF00

Its complement is #F7BAFF, a pale soft magenta.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#00FF00
  • Complement#F7BAFF

Complementary

Open in Harmony Studio
  • −30°#D6DE00
  • Base#00FF00
  • +30°#00F6C8
  • Base#00FF00
  • +120°#BCD4FF
  • +240°#FFC1BE
  • Base#00FF00
  • +150°#D4CBFF
  • +210°#FFBDD8

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-lime: #00ff00;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        lime: '#00ff00',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-lime: oklch(0.866 0.295 142.5);
}

Design token (W3C DTCG)

{
  "color": {
    "lime": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0, 1, 0],
        "hex": "#00ff00"
      },
      "$description": "CSS named color lime"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let lime = Color(.sRGB, red: 0.000, green: 1.000, blue: 0.000, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Lime = Color(0xFF00FF00)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #00FF00 in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.