Skip to content

CSS named color

LawnGreen #7CFC00

LawnGreen (CSS keyword lawngreen) has the hex code #7CFC00 and the RGB value rgb(124, 252, 0): a very light, vivid green.

LawnGreen#7CFC00

A very bright, saturated green-yellow (#7cfc00), nearly identical to chartreuse (#7fff00). The two differ by only a few units per channel.

Color codes for LawnGreen

Color codes for LawnGreen
CSS keywordlawngreen
HEX#7CFC00
RGBrgb(124, 252, 0)
HSLhsl(90, 100%, 49%)
HWBhwb(90 0% 1%)
OKLCHoklch(88.2% 0.263 136.2)
CMYK (naive, no ICC profile)cmyk(51%, 0%, 100%, 1%)
Decimal8,190,976
Hue familyGreens

Contrast and accessibility

On lawngreen, black text has a contrast ratio of 15.78:1 and passes AAA at any text size; white text reaches 1.33:1.

WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on lawngreen15.78:1PassPassPassPass87.8
White text on lawngreen1.33:1FailFailFailFail−18.2
Lawngreen text on white1.33:1FailFailFailFail15.8
Lawngreen text on black15.78:1PassPassPassPass−87.9

Tints and shades

Each step mixes lawngreen with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, lawngreen, white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #83fc0d
  2. 15%
    #90fc26
  3. 25%
    #9dfd40
  4. 35%
    #aafd59
  5. 45%
    #b7fd73
  6. 55%
    #c4fe8c
  7. 65%
    #d1fea6
  8. 75%
    #defebf
  9. 85%
    #ebffd9
  10. 95%
    #f8fff2

Shades (mixed with black)

  1. 5%
    #76ef00
  2. 15%
    #69d600
  3. 25%
    #5dbd00
  4. 35%
    #51a400
  5. 45%
    #448b00
  6. 55%
    #387100
  7. 65%
    #2b5800
  8. 75%
    #1f3f00
  9. 85%
    #132600
  10. 95%
    #060d00

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, lawngreen's complementary color is #F7C0FF (close to pink), its analogous colors are #EBDE00 and #00FFB9, and its triadic partners are #B6DBFF and #FFC2C5. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#f7c0ff
Analogous−30°, +30°#ebde00#00ffb9
Triadic+120°, +240°#b6dbff#ffc2c5
Split-complementary+150°, +210°#d3d1ff#ffbce7

Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.

Warm or cool?

LawnGreen sits on the boundary: its hue of 90° on the HSL wheel is a yellow-green, which reads warm next to blues and cool next to reds and oranges.

Nearest named and Tailwind colors

Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
chartreuse#7fff000.9
lime#00ff004.7
greenyellow#adff2f5.1

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
lime-400#9ae6005.8
lime-300#bbf4517.8
lime-500#7ccf0012.0

Code snippets

CSS
.element {
  color: lawngreen;
  background-color: #7cfc00;
  border-color: rgb(124 252 0);
  outline-color: oklch(88.2% 0.263 136.2);
}
Tailwind CSS
<div class="bg-[#7cfc00] text-black">...</div>

/* or register it once in your CSS (Tailwind v4) */
@theme {
  --color-lawngreen: #7cfc00;
}
/* then use bg-lawngreen, text-lawngreen, border-lawngreen */
SwiftUI
import SwiftUI

extension Color {
  static let lawngreen = Color(red: 0.486, green: 0.988, blue: 0.000)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Lawngreen = Color(0xFF7CFC00)
Flutter
import 'package:flutter/material.dart';

const lawngreen = Color(0xFF7CFC00);
Android XML
<!-- res/values/colors.xml -->
<color name="lawngreen">#7CFC00</color>

Frequently asked questions

What is the hex code for lawngreen?
The hex code for lawngreen is #7CFC00. The same color is rgb(124, 252, 0), hsl(90, 100%, 49%) and oklch(88.2% 0.263 136.2), and in CSS you can also write the keyword lawngreen directly.
Is lawngreen a warm or cool color?
LawnGreen sits on the boundary: its hue of 90° on the HSL wheel is a yellow-green, which reads warm next to blues and cool next to reds and oranges.
What colors go with lawngreen?
Rotating the hue in OKLCH while keeping lightness and chroma, lawngreen's complementary color is #F7C0FF (close to pink), its analogous colors are #EBDE00 and #00FFB9, and its triadic partners are #B6DBFF and #FFC2C5. For text on top, black gives the higher contrast.
Can you use white text on lawngreen?
White text on lawngreen has a contrast ratio of 1.33:1, which fails AA even for large text under WCAG 2.2. Black text reaches 15.78:1 and passes both AA and AAA. In APCA terms that is Lc −18.2 for white and Lc 87.8 for black.
What is the RGB value of lawngreen?
LawnGreen is rgb(124, 252, 0): red 124, green 252 and blue 0 on the 0 to 255 scale, or 48.6%, 98.8% and 0.0%. As a decimal integer it is 8190976.

Last reviewed by Arielton Oberek.