#5A9C2E#5A9C2E

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

Color values

HEX#5A9C2E
RGBrgb(90, 156, 46)
HSLhsl(96, 54%, 40%)
HSVhsv(96, 71%, 61%)
CMYKcmyk(42.3%, 0%, 70.5%, 38.8%)
CIE-LABlab(58.18, -40.25, 48.71)
CIE-LCHlch(58.18, 63.19, 129.57°)
OKLaboklab(62.59% -0.1121 0.1106)
OKLCHoklch(62.59% 0.158 135.4)
XYZxyz(16.5977, 26.1469, 6.7565)
Luminance0.2615 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9C2E #702E9C
analogous
#919C2E #5A9C2E #2E9C39
triadic
#5A9C2E #2E5A9C #9C2E5A
tetradic
#5A9C2E #2E919C #702E9C #9C392E
square
#5A9C2E #2E919C #702E9C #9C392E
split-complementary
#5A9C2E #392E9C #9C2E91
monochromatic
#233D12 #3F6D20 #5A9C2E #76C740 #98D570

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A9C2E#FFFFFF#000000##000000
##5A9C2E1.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)
#A28F1D
Deuteranopia (green-blind)
#998A38
Tritanopia (blue-blind)
#589686
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #5a9c2e;
/* rgb */ color: rgb(90, 156, 46);
/* oklch */ color: oklch(62.6% 0.158 135.4);
Tailwind
colors: {
  custom: {
    50: '#8eba6d',
    500: '#5a9c2e',
    950: '#000000',
  },
}
SCSS
$custom: #5a9c2e;
$custom-light: #8eba6d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9c2e",
  "rgb": {
    "r": 90,
    "g": 156,
    "b": 46
  },
  "hsl": {
    "h": 96,
    "s": 54.455,
    "l": 39.608
  },
  "oklch": {
    "l": 0.62594,
    "c": 0.15752,
    "h": 135.4
  },
  "luminance": 0.26148
}

Semantic roles & 50–950 ramp

primary
#5A9C2E
secondary
#9B6ABC
accent
#4ADEA3
background
#F9FBF6
surface
#F1F6EC
border
#CBD0C7
text
#0D1107
muted
#7E807A

Preview Lab

Preview with #5A9C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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