#5A9C2D#5A9C2D

#5A9C2D is a light, vivid yellow-green. Relative luminance 0.261; OKLCH L 62.6% C 0.158 H 135.3°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#5A9C2D
RGBrgb(90, 156, 45)
HSLhsl(96, 55%, 39%)
HSVhsv(96, 71%, 61%)
CMYKcmyk(42.3%, 0%, 71.2%, 38.8%)
CIE-LABlab(58.17, -40.33, 49.10)
CIE-LCHlch(58.17, 63.54, 129.40°)
OKLaboklab(62.59% -0.1124 0.1113)
OKLCHoklch(62.59% 0.158 135.3)
XYZxyz(16.5782, 26.1391, 6.6539)
Luminance0.2614 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9C2D #6F2D9C
analogous
#929C2D #5A9C2D #2D9C38
triadic
#5A9C2D #2D5A9C #9C2D5A
tetradic
#5A9C2D #2D929C #6F2D9C #9C382D
square
#5A9C2D #2D929C #6F2D9C #9C382D
split-complementary
#5A9C2D #382D9C #9C2D92
monochromatic
#233D12 #3F6D1F #5A9C2D #76C83F #98D56E

Accessibility & contrast

On white

3.37
#5A9C2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.23
#5A9C2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A9C2D
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A9C2D#FFFFFF#000000##000000
##5A9C2D1.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A28F1B
Deuteranopia (green-blind)
#998A37
Tritanopia (blue-blind)
#589686
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #5a9c2d;
/* rgb */ color: rgb(90, 156, 45);
/* oklch */ color: oklch(62.6% 0.158 135.3);
Tailwind
colors: {
  custom: {
    50: '#8eba6d',
    500: '#5a9c2d',
    950: '#000000',
  },
}
SCSS
$custom: #5a9c2d;
$custom-light: #8eba6d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9c2d",
  "rgb": {
    "r": 90,
    "g": 156,
    "b": 45
  },
  "hsl": {
    "h": 95.676,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.62586,
    "c": 0.1582,
    "h": 135.3
  },
  "luminance": 0.2614
}

Semantic roles & 50–950 ramp

primary
#5A9C2D
secondary
#9A68BC
accent
#49DFA2
background
#F9FBF6
surface
#F1F6EC
border
#CBD0C7
text
#0D1107
muted
#7E807A

Preview Lab

Preview with #5A9C2D

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#5A9C2D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva