#5A9620#5A9620

#5A9620 is a mid, vivid yellow-green. Relative luminance 0.241; OKLCH L 60.9% C 0.158 H 133.4°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#5A9620
RGBrgb(90, 150, 32)
HSLhsl(91, 65%, 36%)
HSVhsv(91, 79%, 59%)
CMYKcmyk(40%, 0%, 78.7%, 41.2%)
CIE-LABlab(56.18, -38.63, 51.86)
CIE-LCHlch(56.18, 64.66, 126.68°)
OKLaboklab(60.93% -0.1087 0.1151)
OKLCHoklch(60.93% 0.158 133.4)
XYZxyz(15.3833, 24.0899, 5.2055)
Luminance0.2409 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9620 #5C2096
analogous
#959620 #5A9620 #209621
triadic
#5A9620 #205A96 #96205A
tetradic
#5A9620 #209596 #5C2096 #962120
square
#5A9620 #209596 #5C2096 #962120
split-complementary
#5A9620 #212096 #962095
monochromatic
#1D310A #3C6415 #5A9620 #78C82B #97DB56

Accessibility & contrast

On white

3.61
#5A9620 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#5A9620 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A9620
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A9620#FFFFFF#000000##000000
##5A96201.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A00
Deuteranopia (green-blind)
#94852D
Tritanopia (blue-blind)
#5A9080
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5a9620;
/* rgb */ color: rgb(90, 150, 32);
/* oklch */ color: oklch(60.9% 0.158 133.4);
Tailwind
colors: {
  custom: {
    50: '#8eb565',
    500: '#5a9620',
    950: '#000000',
  },
}
SCSS
$custom: #5a9620;
$custom-light: #8eb565;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9620",
  "rgb": {
    "r": 90,
    "g": 150,
    "b": 32
  },
  "hsl": {
    "h": 90.508,
    "s": 64.835,
    "l": 35.686
  },
  "oklch": {
    "l": 0.60929,
    "c": 0.15837,
    "h": 133.4
  },
  "luminance": 0.24091
}

Semantic roles & 50–950 ramp

primary
#5A9620
secondary
#8A53BE
accent
#40E895
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A9620

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

Preview Lab → · Contrast checker → · Palette generator →

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