#508E20#508E20

#508E20 is a mid, vivid yellow-green. Relative luminance 0.212; OKLCH L 58.3% C 0.154 H 134.9°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#508E20
RGBrgb(80, 142, 32)
HSLhsl(94, 63%, 34%)
HSVhsv(94, 77%, 56%)
CMYKcmyk(43.7%, 0%, 77.5%, 44.3%)
CIE-LABlab(53.12, -38.72, 48.76)
CIE-LCHlch(53.12, 62.26, 128.46°)
OKLaboklab(58.29% -0.1083 0.1088)
OKLCHoklch(58.29% 0.154 134.9)
XYZxyz(13.2417, 21.1550, 4.7518)
Luminance0.2116 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508E20 #5E208E
analogous
#878E20 #508E20 #208E27
triadic
#508E20 #20508E #8E2050
tetradic
#508E20 #20878E #5E208E #8E2720
square
#508E20 #20878E #5E208E #8E2720
split-complementary
#508E20 #27208E #8E2087
monochromatic
#182A09 #345C15 #508E20 #6CC02B #8CD851

Accessibility & contrast

On white

4.01
#508E20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#508E20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508E20
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508E20#FFFFFF#000000##000000
##508E201.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#948206
Deuteranopia (green-blind)
#8B7D2B
Tritanopia (blue-blind)
#4F8879
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #508e20;
/* rgb */ color: rgb(80, 142, 32);
/* oklch */ color: oklch(58.3% 0.154 134.9);
Tailwind
colors: {
  custom: {
    50: '#87af64',
    500: '#508e20',
    950: '#000000',
  },
}
SCSS
$custom: #508e20;
$custom-light: #87af64;
$custom-dark: #000000;
JSON
{
  "hex": "#508e20",
  "rgb": {
    "r": 80,
    "g": 142,
    "b": 32
  },
  "hsl": {
    "h": 93.818,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58291,
    "c": 0.15356,
    "h": 134.9
  },
  "luminance": 0.21156
}

Semantic roles & 50–950 ramp

primary
#508E20
secondary
#8C4FBB
accent
#42E69E
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508E20

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

Preview Lab → · Contrast checker → · Palette generator →

#508E20 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva