CSS named color

Lawn Green #7CFC00

The CSS keyword lawngreen is #7CFC00. It is a pale vivid green in the green family. In OKLCH it sits at lightness 0.882, chroma 0.263 and hue 136.2°.

Relative luminance
0.7391
OKLCH L · C · h
0.882 · 0.263 · 136.2
Best text
Black 15.78:1
Hue family
Green

#7CFC00 color codes

HEX
#7CFC00
RGB
rgb(124, 252, 0)
HSL
hsl(90, 100%, 49%)
OKLCH
oklch(0.882 0.263 136.2)
OKLab
oklab(0.882 -0.190 0.182)
CIELAB (D65)
L* 88.88, a* -67.86, b* 84.95
XYZ (D65)
X 43.12, Y 73.90, Z 11.99
CMYK (naive)
cmyk(51%, 0%, 100%, 1%)

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 #7CFC00 accessible?

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

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

    1.33:1

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

    Text is here, unreadable at 1.33:1

  • As text on black

    15.78:1

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

    1.33:1

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

    Text is here, unreadable at 1.33:1

Nearest versions that pass 4.5:1

  • For text on white

    #3F8600 4.54:1

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

  • For text on black

    #7CFC00 15.78:1

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

Checking another pair? Use the Contrast Checker.

Studio

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

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

  1. 50#E4FFD8
    White
    1.07
    Black
    19.59
  2. 100#C4FFAA
    White
    1.15
    Black
    18.23
  3. 200This color#7CFC00
    White
    1.33
    Black
    15.78
  4. 300#6CDE00
    White
    1.73
    Black
    12.08
  5. 400#5BBD00
    White
    2.40
    Black
    8.72
  6. 500#4B9D00
    White
    3.43
    Black
    6.12
  7. 600#3D8200
    White
    4.78
    Black
    4.39
  8. 700#2F6800
    White
    6.77
    Black
    3.10
  9. 800#204C00
    White
    10.02
    Black
    2.09
  10. 900#133100
    White
    14.31
    Black
    1.46
  11. 950#071C00
    White
    17.87
    Black
    1.17

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

Gamut

How vivid #7CFC00 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.263; #7CFC00 uses 100% of it. Display P3, which many recent phones and laptops show, reaches 0.309 there: 17% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.263
sRGB edge
0.263
Display P3 edge
0.309
Rec. 2020 edge
0.320
Dominant wavelength
556 nm
Excitation purity
75%
Chromaticity
x 0.3342, y 0.5728
  • This color#7CFC00
  • Most vivid in sRGB#7CFC00
  • Most vivid in Display P3oklch(0.882 0.309 136.2)

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

Use the wider color where screens show it
.accent {
  color: #7cfc00;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.5685 0.9938 0); }
}

Mixing

Mixing #7CFC00

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%#BEFE80
  • OKLab50%#C3FFA7
  • OKLCH50%#C5FFAB

Black #000000

  • sRGB50%#3E7E00
  • OKLab50%#2C6200
  • OKLCH50%#2C6200

Its complement #EFC7FF

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

In use

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

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

Dark page

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

Color vision

How #7CFC00 looks with color blindness

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

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

    #FFE600 ΔE2000 23.5

    Distinct

    Reads as pale vivid yellow

  • Deuteranopia

    No working green (medium-wavelength) cones

    #F5DB38 ΔE2000 23.7

    Distinct

    Reads as pale soft amber

  • Tritanopia

    No working blue (short-wavelength) cones

    #75F2D6 ΔE2000 26.3

    Distinct

    Reads as pale soft cyan

  • Achromatopsia

    No cone color vision; lightness only

    #DFDFDF ΔE2000 31.6

    Distinct

    Reads as off-white

Pairing check

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

VisionThe pairΔE2000Verdict
Normal vision#7CFC00 · #EFC7FF70.9Stays distinct
Protanopia#FFE600 · #C0D2FF49.9Stays distinct
Deuteranopia#F5DB38 · #C8D6FD46.2Stays distinct
Tritanopia#75F2D6 · #EFCDDA46.9Stays distinct
Achromatopsia#DFDFDF · #D5D5D52.3Easily confused

Harmony

Color harmonies for #7CFC00

Its complement is #EFC7FF, 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#7CFC00
  • Complement#EFC7FF

Complementary

Open in Harmony Studio
  • −30°#E9DE00
  • Base#7CFC00
  • +30°#00FDBC
  • Base#7CFC00
  • +120°#BFDAFF
  • +240°#FFC8CA
  • Base#7CFC00
  • +150°#D4D3FF
  • +210°#FFC4E3

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-lawngreen: #7cfc00;
}

Tailwind config

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

Tailwind v4 theme

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

@theme {
  --color-lawngreen: oklch(0.882 0.263 136.2);
}

Design token (W3C DTCG)

{
  "color": {
    "lawngreen": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.4863, 0.9882, 0],
        "hex": "#7cfc00"
      },
      "$description": "CSS named color lawngreen"
    }
  }
}

SwiftUI color

import SwiftUI

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

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Lawngreen = Color(0xFF7CFC00)
}

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

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