#5A9D20#5A9D20

#5A9D20 is a light, vivid yellow-green. Relative luminance 0.264; OKLCH L 62.8% C 0.167 H 134.3°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#5A9D20
RGBrgb(90, 157, 32)
HSLhsl(92, 66%, 37%)
HSVhsv(92, 80%, 62%)
CMYKcmyk(42.7%, 0%, 79.6%, 38.4%)
CIE-LABlab(58.41, -41.60, 53.96)
CIE-LCHlch(58.41, 68.13, 127.63°)
OKLaboklab(62.76% -0.1168 0.1195)
OKLCHoklch(62.76% 0.167 134.3)
XYZxyz(16.5338, 26.3910, 5.5890)
Luminance0.2639 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9D20 #63209D
analogous
#999D20 #5A9D20 #209D24
triadic
#5A9D20 #205A9D #9D205A
tetradic
#5A9D20 #20999D #63209D #9D2420
square
#5A9D20 #20999D #63209D #9D2420
split-complementary
#5A9D20 #24209D #9D2099
monochromatic
#20370B #3D6A16 #5A9D20 #77D02A #97DD5A

Accessibility & contrast

On white

3.34
#5A9D20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#5A9D20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A9D20
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A9D20#FFFFFF#000000##000000
##5A9D201.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A39000
Deuteranopia (green-blind)
#9A8A2E
Tritanopia (blue-blind)
#599786
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #5a9d20;
/* rgb */ color: rgb(90, 157, 32);
/* oklch */ color: oklch(62.8% 0.167 134.3);
Tailwind
colors: {
  custom: {
    50: '#8fba66',
    500: '#5a9d20',
    950: '#000000',
  },
}
SCSS
$custom: #5a9d20;
$custom-light: #8fba66;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9d20",
  "rgb": {
    "r": 90,
    "g": 157,
    "b": 32
  },
  "hsl": {
    "h": 92.16,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.62755,
    "c": 0.16709,
    "h": 134.3
  },
  "luminance": 0.26392
}

Semantic roles & 50–950 ramp

primary
#5A9D20
secondary
#9057C1
accent
#3FE99A
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1206
muted
#7E817A

Preview Lab

Preview with #5A9D20

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

Preview Lab → · Contrast checker → · Palette generator →

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