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.
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
| CSS keyword | lawngreen |
|---|---|
| HEX | #7CFC00 |
| RGB | rgb(124, 252, 0) |
| HSL | hsl(90, 100%, 49%) |
| HWB | hwb(90 0% 1%) |
| OKLCH | oklch(88.2% 0.263 136.2) |
| CMYK (naive, no ICC profile) | cmyk(51%, 0%, 100%, 1%) |
| Decimal | 8,190,976 |
| Hue family | Greens |
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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on lawngreen | 15.78:1 | Pass | Pass | Pass | Pass | 87.8 |
| White text on lawngreen | 1.33:1 | Fail | Fail | Fail | Fail | −18.2 |
| Lawngreen text on white | 1.33:1 | Fail | Fail | Fail | Fail | 15.8 |
| Lawngreen text on black | 15.78:1 | Pass | Pass | Pass | Pass | −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)
- 5%
#83fc0d - 15%
#90fc26 - 25%
#9dfd40 - 35%
#aafd59 - 45%
#b7fd73 - 55%
#c4fe8c - 65%
#d1fea6 - 75%
#defebf - 85%
#ebffd9 - 95%
#f8fff2
Shades (mixed with black)
- 5%
#76ef00 - 15%
#69d600 - 25%
#5dbd00 - 35%
#51a400 - 45%
#448b00 - 55%
#387100 - 65%
#2b5800 - 75%
#1f3f00 - 85%
#132600 - 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.
| Harmony | Rotation | Color |
|---|---|---|
| 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
| Color | HEX | ΔE OK |
|---|---|---|
| chartreuse | #7fff00 | 0.9 |
| lime | #00ff00 | 4.7 |
| greenyellow | #adff2f | 5.1 |
Code snippets
.element {
color: lawngreen;
background-color: #7cfc00;
border-color: rgb(124 252 0);
outline-color: oklch(88.2% 0.263 136.2);
}<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 */import SwiftUI
extension Color {
static let lawngreen = Color(red: 0.486, green: 0.988, blue: 0.000)
}import androidx.compose.ui.graphics.Color
val Lawngreen = Color(0xFF7CFC00)import 'package:flutter/material.dart';
const lawngreen = Color(0xFF7CFC00);<!-- 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.