CSS named color

Chartreuse #7FFF00

The CSS keyword chartreuse is #7FFF00. It is a pale vivid green in the green family. In OKLCH it sits at lightness 0.890, chroma 0.265 and hue 136.0°.

Relative luminance
0.7603
OKLCH L · C · h
0.890 · 0.265 · 136.0
Best text
Black 16.20:1
Hue family
Green

#7FFF00 color codes

HEX
#7FFF00
RGB
rgb(127, 255, 0)
HSL
hsl(90, 100%, 50%)
OKLCH
oklch(0.890 0.265 136.0)
OKLab
oklab(0.890 -0.191 0.184)
CIELAB (D65)
L* 89.87, a* -68.07, b* 85.78
XYZ (D65)
X 44.51, Y 76.03, Z 12.33
CMYK (naive)
cmyk(50%, 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 #7FFF00 accessible?

Black text on it reaches 16.20:1, passing AAA. White text fails at 1.29: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

    16.20:1

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

    1.29:1

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

    Text is here, unreadable at 1.29:1

  • As text on black

    16.20:1

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

    1.29:1

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

    Text is here, unreadable at 1.29:1

Nearest versions that pass 4.5:1

  • For text on white

    #3F8500 4.59:1

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

  • For text on black

    #7FFF00 16.20:1

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

Checking another pair? Use the Contrast Checker.

Studio

Adjust #7FFF00 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 #7FFF00

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

  1. 50#E4FFD8
    White
    1.07
    Black
    19.59
  2. 100#C5FFA9
    White
    1.15
    Black
    18.25
  3. 200This color#7FFF00
    White
    1.29
    Black
    16.20
  4. 300#6DDD00
    White
    1.75
    Black
    11.99
  5. 400#5CBD00
    White
    2.40
    Black
    8.73
  6. 500#4C9D00
    White
    3.42
    Black
    6.13
  7. 600#3D8200
    White
    4.78
    Black
    4.39
  8. 700#306800
    White
    6.76
    Black
    3.10
  9. 800#214C00
    White
    10.00
    Black
    2.09
  10. 900#133100
    White
    14.31
    Black
    1.46
  11. 950#081C00
    White
    17.85
    Black
    1.17

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

Gamut

How vivid #7FFF00 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.265; #7FFF00 uses 100% of it. Display P3, which many recent phones and laptops show, reaches 0.296 there: 12% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.265
sRGB edge
0.265
Display P3 edge
0.296
Rec. 2020 edge
0.323
Dominant wavelength
556 nm
Excitation purity
75%
Chromaticity
x 0.3350, y 0.5722
  • This color#7FFF00
  • Most vivid in sRGB#7FFF00
  • Most vivid in Display P3oklch(0.890 0.296 136.0)

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

Use the wider color where screens show it
.accent {
  color: #7fff00;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.5962 1 0.1688); }
}

Mixing

Mixing #7FFF00

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%#BFFF80
  • OKLab50%#C4FFA7
  • OKLCH50%#CAFFB2

Black #000000

  • sRGB50%#408000
  • OKLab50%#2D6300
  • OKLCH50%#2D6300

Its complement #F0CBFF

  • sRGB50%#B8E580
  • OKLab50%#C0E9AC
  • OKLCH50%#FFCFB9
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #7fff00, white);
color: color-mix(in oklch, #7fff00 50%, white);

In use

#7FFF00 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:116.20:1 Passes
  • Link and body-size textText, 4.5:11.29:1 Fails
  • Large headingLarge text, 3:11.29:1 Fails
  • Icons, borders and focus ringsNon-text, 3:11.29:1 Fails

For text on this page, the nearest shade that passes is #3F8500 4.59:1

Dark page

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

Color vision

How #7FFF00 looks with color blindness

Achromatopsia changes it most, ΔE2000 31.6; protanopia changes it least, 23.0.

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

    #FFE800 ΔE2000 23.0

    Distinct

    Reads as pale vivid yellow

  • Deuteranopia

    No working green (medium-wavelength) cones

    #F8DE39 ΔE2000 23.6

    Distinct

    Reads as pale vivid amber

  • Tritanopia

    No working blue (short-wavelength) cones

    #79F5D9 ΔE2000 26.5

    Distinct

    Reads as pale soft cyan

  • Achromatopsia

    No cone color vision; lightness only

    #E2E2E2 ΔE2000 31.6

    Distinct

    Reads as off-white

Pairing check

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

VisionThe pairΔE2000Verdict
Normal vision#7FFF00 · #F0CBFF69.2Stays distinct
Protanopia#FFE800 · #C5D5FF49.1Stays distinct
Deuteranopia#F8DE39 · #CCD9FD45.3Stays distinct
Tritanopia#79F5D9 · #F0D1DD46.2Stays distinct
Achromatopsia#E2E2E2 · #D8D8D82.3Easily confused

Harmony

Color harmonies for #7FFF00

Its complement is #F0CBFF, a pale muted magenta.

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

Open the Harmony Studio
  • Base#7FFF00
  • Complement#F0CBFF

Complementary

Open in Harmony Studio
  • −30°#ECE100
  • Base#7FFF00
  • +30°#2EFFC0
  • Base#7FFF00
  • +120°#C4DDFF
  • +240°#FFCCCE
  • Base#7FFF00
  • +150°#D7D6FF
  • +210°#FFC8E5

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-chartreuse: #7fff00;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        chartreuse: '#7fff00',
      },
    },
  },
};

Tailwind v4 theme

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

@theme {
  --color-chartreuse: oklch(0.890 0.265 136.0);
}

Design token (W3C DTCG)

{
  "color": {
    "chartreuse": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.498, 1, 0],
        "hex": "#7fff00"
      },
      "$description": "CSS named color chartreuse"
    }
  }
}

SwiftUI color

import SwiftUI

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

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Chartreuse = Color(0xFF7FFF00)
}

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 #7FFF00 in the tools

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