#5A9020#5A9020

#5A9020 is a mid, vivid yellow-green. Relative luminance 0.222; OKLCH L 59.4% C 0.151 H 132.4°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#5A9020
RGBrgb(90, 144, 32)
HSLhsl(89, 64%, 35%)
HSVhsv(89, 78%, 56%)
CMYKcmyk(37.5%, 0%, 77.8%, 43.5%)
CIE-LABlab(54.26, -36.00, 50.03)
CIE-LCHlch(54.26, 61.64, 125.74°)
OKLaboklab(59.36% -0.1017 0.1113)
OKLCHoklch(59.36% 0.151 132.4)
XYZxyz(14.4502, 22.2238, 4.8945)
Luminance0.2222 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9020 #562090
analogous
#908E20 #5A9020 #229020
triadic
#5A9020 #205A90 #90205A
tetradic
#5A9020 #20908E #562090 #902022
square
#5A9020 #20908E #562090 #902022
split-complementary
#5A9020 #202290 #8E2090
monochromatic
#1B2C0A #3B5E15 #5A9020 #79C22B #98D952

Accessibility & contrast

On white

3.86
#5A9020 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#5A9020 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A9020
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A9020#FFFFFF#000000##000000
##5A90201.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#968405
Deuteranopia (green-blind)
#8F802C
Tritanopia (blue-blind)
#5B8A7B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5a9020;
/* rgb */ color: rgb(90, 144, 32);
/* oklch */ color: oklch(59.4% 0.151 132.4);
Tailwind
colors: {
  custom: {
    50: '#8db165',
    500: '#5a9020',
    950: '#000000',
  },
}
SCSS
$custom: #5a9020;
$custom-light: #8db165;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9020",
  "rgb": {
    "r": 90,
    "g": 144,
    "b": 32
  },
  "hsl": {
    "h": 88.929,
    "s": 63.636,
    "l": 34.51
  },
  "oklch": {
    "l": 0.59364,
    "c": 0.15074,
    "h": 132.4
  },
  "luminance": 0.22224
}

Semantic roles & 50–950 ramp

primary
#5A9020
secondary
#8450BC
accent
#41E791
background
#F9FAF6
surface
#F1F5EB
border
#CBCFC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5A9020

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

Preview Lab → · Contrast checker → · Palette generator →

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