#5A8B20#5A8B20

#5A8B20 is a mid, vivid yellow-green. Relative luminance 0.207; OKLCH L 58.1% C 0.144 H 131.5°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5A8B20
RGBrgb(90, 139, 32)
HSLhsl(87, 63%, 34%)
HSVhsv(87, 77%, 55%)
CMYKcmyk(35.3%, 0%, 77%, 45.5%)
CIE-LABlab(52.67, -33.76, 48.49)
CIE-LCHlch(52.67, 59.09, 124.84°)
OKLaboklab(58.06% -0.0956 0.1081)
OKLCHoklch(58.06% 0.144 131.5)
XYZxyz(13.7096, 20.7427, 4.6476)
Luminance0.2074 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8B20 #51208B
analogous
#8B8620 #5A8B20 #248B20
triadic
#5A8B20 #205A8B #8B205A
tetradic
#5A8B20 #208B86 #51208B #8B2024
square
#5A8B20 #208B86 #51208B #8B2024
split-complementary
#5A8B20 #20248B #86208B
monochromatic
#1A2809 #3A5915 #5A8B20 #7ABD2B #98D64F

Accessibility & contrast

On white

4.08
#5A8B20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#5A8B20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8B20
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8B20#FFFFFF#000000##000000
##5A8B201.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#918008
Deuteranopia (green-blind)
#8B7C2B
Tritanopia (blue-blind)
#5C8577
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5a8b20;
/* rgb */ color: rgb(90, 139, 32);
/* oklch */ color: oklch(58.1% 0.144 131.5);
Tailwind
colors: {
  custom: {
    50: '#8dad64',
    500: '#5a8b20',
    950: '#000000',
  },
}
SCSS
$custom: #5a8b20;
$custom-light: #8dad64;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8b20",
  "rgb": {
    "r": 90,
    "g": 139,
    "b": 32
  },
  "hsl": {
    "h": 87.477,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.5806,
    "c": 0.14429,
    "h": 131.5
  },
  "luminance": 0.20743
}

Semantic roles & 50–950 ramp

primary
#5A8B20
secondary
#7F4DBA
accent
#42E68D
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5A8B20

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

Preview Lab → · Contrast checker → · Palette generator →

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