#5A9C2F#5A9C2F

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

Color values

HEX#5A9C2F
RGBrgb(90, 156, 47)
HSLhsl(96, 54%, 40%)
HSVhsv(96, 70%, 61%)
CMYKcmyk(42.3%, 0%, 69.9%, 38.8%)
CIE-LABlab(58.18, -40.17, 48.31)
CIE-LCHlch(58.18, 62.83, 129.74°)
OKLaboklab(62.6% -0.1118 0.1099)
OKLCHoklch(62.6% 0.157 135.5)
XYZxyz(16.6176, 26.1549, 6.8616)
Luminance0.2616 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9C2F #712F9C
analogous
#919C2F #5A9C2F #2F9C3A
triadic
#5A9C2F #2F5A9C #9C2F5A
tetradic
#5A9C2F #2F919C #712F9C #9C3A2F
square
#5A9C2F #2F919C #712F9C #9C3A2F
split-complementary
#5A9C2F #3A2F9C #9C2F91
monochromatic
#243E13 #3F6D21 #5A9C2F #76C642 #98D471

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A9C2F#FFFFFF#000000##000000
##5A9C2F1.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)
#A28F1F
Deuteranopia (green-blind)
#998A39
Tritanopia (blue-blind)
#589686
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #5a9c2f;
/* rgb */ color: rgb(90, 156, 47);
/* oklch */ color: oklch(62.6% 0.157 135.5);
Tailwind
colors: {
  custom: {
    50: '#8eba6e',
    500: '#5a9c2f',
    950: '#000000',
  },
}
SCSS
$custom: #5a9c2f;
$custom-light: #8eba6e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9c2f",
  "rgb": {
    "r": 90,
    "g": 156,
    "b": 47
  },
  "hsl": {
    "h": 96.33,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.62603,
    "c": 0.15683,
    "h": 135.5
  },
  "luminance": 0.26156
}

Semantic roles & 50–950 ramp

primary
#5A9C2F
secondary
#9C6BBC
accent
#4BDDA3
background
#F9FBF6
surface
#F1F6EC
border
#CBD0C7
text
#0D1107
muted
#7E807A

Preview Lab

Preview with #5A9C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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