CSS named color
LightGreen #90EE90
LightGreen (CSS keyword lightgreen) has the hex code #90EE90 and the RGB value rgb(144, 238, 144): a very light, vivid green.
A soft pastel green (#90ee90), slightly deeper than palegreen. A common background for success and "added" lines in diff views.
Color codes for LightGreen
| CSS keyword | lightgreen |
|---|---|
| HEX | #90EE90 |
| RGB | rgb(144, 238, 144) |
| HSL | hsl(120, 73%, 75%) |
| HWB | hwb(120 56% 7%) |
| OKLCH | oklch(86.8% 0.156 144.1) |
| CMYK (naive, no ICC profile) | cmyk(39%, 0%, 39%, 7%) |
| Decimal | 9,498,256 |
| Hue family | Greens |
Contrast and accessibility
On lightgreen, black text has a contrast ratio of 14.81:1 and passes AAA at any text size; white text reaches 1.41: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 lightgreen | 14.81:1 | Pass | Pass | Pass | Pass | 83.8 |
| White text on lightgreen | 1.41:1 | Fail | Fail | Fail | Fail | −22.7 |
| Lightgreen text on white | 1.41:1 | Fail | Fail | Fail | Fail | 19.9 |
| Lightgreen text on black | 14.81:1 | Pass | Pass | Pass | Pass | −83.5 |
Tints and shades
Each step mixes lightgreen with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, lightgreen, white 25%) in CSS.
Tints (mixed with white)
- 5%
#96ef96 - 15%
#a1f1a1 - 25%
#acf2ac - 35%
#b7f4b7 - 45%
#c2f6c2 - 55%
#cdf7cd - 65%
#d8f9d8 - 75%
#e3fbe3 - 85%
#eefcee - 95%
#f9fef9
Shades (mixed with black)
- 5%
#89e289 - 15%
#7aca7a - 25%
#6cb36c - 35%
#5e9b5e - 45%
#4f834f - 55%
#416b41 - 65%
#325332 - 75%
#243c24 - 85%
#162416 - 95%
#070c07
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, lightgreen's complementary color is #FFB0FF (close to plum), its analogous colors are #D2DF5A and #34F4CC, and its triadic partners are #B7D4FF and #FFBCB6. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #ffb0ff |
| Analogous | −30°, +30° | #d2df5a#34f4cc |
| Triadic | +120°, +240° | #b7d4ff#ffbcb6 |
| Split-complementary | +150°, +210° | #d7c8ff#ffb6d8 |
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?
LightGreen is a cool color: its hue is 120° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.
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 |
|---|---|---|
| palegreen | #98fb98 | 3.6 |
| mediumspringgreen | #00fa9a | 6.5 |
| aquamarine | #7fffd4 | 8.1 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| green-300 | #7bf1a8 | 2.8 |
| emerald-300 | #5ee9b5 | 6.0 |
| lime-300 | #bbf451 | 7.3 |
Code snippets
.element {
color: lightgreen;
background-color: #90ee90;
border-color: rgb(144 238 144);
outline-color: oklch(86.8% 0.156 144.1);
}<div class="bg-[#90ee90] text-black">...</div>
/* or register it once in your CSS (Tailwind v4) */
@theme {
--color-lightgreen: #90ee90;
}
/* then use bg-lightgreen, text-lightgreen, border-lightgreen */import SwiftUI
extension Color {
static let lightgreen = Color(red: 0.565, green: 0.933, blue: 0.565)
}import androidx.compose.ui.graphics.Color
val Lightgreen = Color(0xFF90EE90)import 'package:flutter/material.dart';
const lightgreen = Color(0xFF90EE90);<!-- res/values/colors.xml -->
<color name="lightgreen">#90EE90</color>Frequently asked questions
- What is the hex code for lightgreen?
- The hex code for lightgreen is #90EE90. The same color is rgb(144, 238, 144), hsl(120, 73%, 75%) and oklch(86.8% 0.156 144.1), and in CSS you can also write the keyword lightgreen directly.
- Is lightgreen a warm or cool color?
- LightGreen is a cool color: its hue is 120° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.
- What colors go with lightgreen?
- Rotating the hue in OKLCH while keeping lightness and chroma, lightgreen's complementary color is #FFB0FF (close to plum), its analogous colors are #D2DF5A and #34F4CC, and its triadic partners are #B7D4FF and #FFBCB6. For text on top, black gives the higher contrast.
- Can you use white text on lightgreen?
- White text on lightgreen has a contrast ratio of 1.41:1, which fails AA even for large text under WCAG 2.2. Black text reaches 14.81:1 and passes both AA and AAA. In APCA terms that is Lc −22.7 for white and Lc 83.8 for black.
- What is the RGB value of lightgreen?
- LightGreen is rgb(144, 238, 144): red 144, green 238 and blue 144 on the 0 to 255 scale, or 56.5%, 93.3% and 56.5%. As a decimal integer it is 9498256.
Last reviewed by Arielton Oberek.