#5A9F20#5A9F20

#5A9F20 is a light, vivid yellow-green. Relative luminance 0.271; OKLCH L 63.3% C 0.170 H 134.6°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#5A9F20
RGBrgb(90, 159, 32)
HSLhsl(93, 66%, 37%)
HSVhsv(93, 80%, 62%)
CMYKcmyk(43.4%, 0%, 79.9%, 37.6%)
CIE-LABlab(59.04, -42.44, 54.55)
CIE-LCHlch(59.04, 69.12, 127.88°)
OKLaboklab(63.28% -0.119 0.1208)
OKLCHoklch(63.28% 0.17 134.6)
XYZxyz(16.8750, 27.0733, 5.7027)
Luminance0.2707 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9F20 #65209F
analogous
#9A9F20 #5A9F20 #209F25
triadic
#5A9F20 #205A9F #9F205A
tetradic
#5A9F20 #209A9F #65209F #9F2520
square
#5A9F20 #209A9F #65209F #9F2520
split-complementary
#5A9F20 #25209F #9F209A
monochromatic
#20390B #3D6C16 #5A9F20 #77D22A #97DE5B

Accessibility & contrast

On white

3.27
#5A9F20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.41
#5A9F20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A9F20
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A9F20#FFFFFF#000000##000000
##5A9F201.003.276.416.41
#FFFFFF3.271.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59200
Deuteranopia (green-blind)
#9C8C2E
Tritanopia (blue-blind)
#599988
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #5a9f20;
/* rgb */ color: rgb(90, 159, 32);
/* oklch */ color: oklch(63.3% 0.170 134.6);
Tailwind
colors: {
  custom: {
    50: '#8fbc67',
    500: '#5a9f20',
    950: '#000000',
  },
}
SCSS
$custom: #5a9f20;
$custom-light: #8fbc67;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9f20",
  "rgb": {
    "r": 90,
    "g": 159,
    "b": 32
  },
  "hsl": {
    "h": 92.598,
    "s": 66.492,
    "l": 37.451
  },
  "oklch": {
    "l": 0.63276,
    "c": 0.16956,
    "h": 134.6
  },
  "luminance": 0.27074
}

Semantic roles & 50–950 ramp

primary
#5A9F20
secondary
#9259C2
accent
#3EE99B
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1206
muted
#7E817A

Preview Lab

Preview with #5A9F20

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

Preview Lab → · Contrast checker → · Palette generator →

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