Skip to content

CSS named color

YellowGreen #9ACD32

YellowGreen (CSS keyword yellowgreen) has the hex code #9ACD32 and the RGB value rgb(154, 205, 50): a light, vivid yellow-green.

YellowGreen#9ACD32

A medium, slightly muted yellow-green (#9acd32). Not to be confused with greenyellow, which is lighter and more saturated.

Color codes for YellowGreen

Color codes for YellowGreen
CSS keywordyellowgreen
HEX#9ACD32
RGBrgb(154, 205, 50)
HSLhsl(80, 61%, 50%)
HWBhwb(80 20% 20%)
OKLCHoklch(78.5% 0.184 126.6)
CMYK (naive, no ICC profile)cmyk(25%, 0%, 76%, 20%)
Decimal10,145,074
Hue familyGreens

Contrast and accessibility

On yellowgreen, black text has a contrast ratio of 11.15:1 and passes AAA at any text size; white text reaches 1.88: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 yellowgreen11.15:1PassPassPassPass68.4
White text on yellowgreen1.88:1FailFailFailFail−39.8
Yellowgreen text on white1.88:1FailFailFailFail35.5
Yellowgreen text on black11.15:1PassPassPassPass−67.0

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #9fd03c
  2. 15%
    #a9d551
  3. 25%
    #b3da65
  4. 35%
    #bddf7a
  5. 45%
    #c7e48e
  6. 55%
    #d2e9a3
  7. 65%
    #dceeb7
  8. 75%
    #e6f3cc
  9. 85%
    #f0f8e0
  10. 95%
    #fafdf5

Shades (mixed with black)

  1. 5%
    #92c330
  2. 15%
    #83ae2b
  3. 25%
    #749a26
  4. 35%
    #648521
  5. 45%
    #55711c
  6. 55%
    #455c16
  7. 65%
    #364812
  8. 75%
    #27330d
  9. 85%
    #171f08
  10. 95%
    #080a03

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, yellowgreen's complementary color is #D599FF (close to plum), its analogous colors are #DBB700 and #1ADB87, and its triadic partners are #67C0FF and #FF8BA8. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#d599ff
Analogous−30°, +30°#dbb700#1adb87
Triadic+120°, +240°#67c0ff#ff8ba8
Split-complementary+150°, +210°#a3b0ff#ff86e4

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?

YellowGreen sits on the boundary: its hue of 80° 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
limegreen#32cd328.5
darkkhaki#bdb76b10.1
lightgreen#90ee9010.2

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
lime-500#7ccf005.4
lime-400#9ae6007.8
green-400#05df728.9

Code snippets

CSS
.element {
  color: yellowgreen;
  background-color: #9acd32;
  border-color: rgb(154 205 50);
  outline-color: oklch(78.5% 0.184 126.6);
}
Tailwind CSS
<div class="bg-[#9acd32] text-black">...</div>

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

extension Color {
  static let yellowgreen = Color(red: 0.604, green: 0.804, blue: 0.196)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const yellowgreen = Color(0xFF9ACD32);
Android XML
<!-- res/values/colors.xml -->
<color name="yellowgreen">#9ACD32</color>

Frequently asked questions

What is the hex code for yellowgreen?
The hex code for yellowgreen is #9ACD32. The same color is rgb(154, 205, 50), hsl(80, 61%, 50%) and oklch(78.5% 0.184 126.6), and in CSS you can also write the keyword yellowgreen directly.
Is yellowgreen a warm or cool color?
YellowGreen sits on the boundary: its hue of 80° 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 yellowgreen?
Rotating the hue in OKLCH while keeping lightness and chroma, yellowgreen's complementary color is #D599FF (close to plum), its analogous colors are #DBB700 and #1ADB87, and its triadic partners are #67C0FF and #FF8BA8. For text on top, black gives the higher contrast.
Can you use white text on yellowgreen?
White text on yellowgreen has a contrast ratio of 1.88:1, which fails AA even for large text under WCAG 2.2. Black text reaches 11.15:1 and passes both AA and AAA. In APCA terms that is Lc −39.8 for white and Lc 68.4 for black.
What is the RGB value of yellowgreen?
YellowGreen is rgb(154, 205, 50): red 154, green 205 and blue 50 on the 0 to 255 scale, or 60.4%, 80.4% and 19.6%. As a decimal integer it is 10145074.

Last reviewed by Arielton Oberek.