#508D20#508D20

#508D20 is a mid, vivid yellow-green. Relative luminance 0.209; OKLCH L 58.0% C 0.152 H 134.7°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#508D20
RGBrgb(80, 141, 32)
HSLhsl(94, 63%, 34%)
HSVhsv(94, 77%, 55%)
CMYKcmyk(43.3%, 0%, 77.3%, 44.7%)
CIE-LABlab(52.79, -38.30, 48.44)
CIE-LCHlch(52.79, 61.75, 128.33°)
OKLaboklab(58.03% -0.1072 0.1082)
OKLCHoklch(58.03% 0.152 134.7)
XYZxyz(13.0936, 20.8588, 4.7024)
Luminance0.2086 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D20 #5D208D
analogous
#878D20 #508D20 #208D27
triadic
#508D20 #20508D #8D2050
tetradic
#508D20 #20878D #5D208D #8D2720
square
#508D20 #20878D #5D208D #8D2720
split-complementary
#508D20 #27208D #8D2087
monochromatic
#172909 #345B15 #508D20 #6CBF2B #8CD750

Accessibility & contrast

On white

4.06
#508D20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#508D20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508D20
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508D20#FFFFFF#000000##000000
##508D201.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938107
Deuteranopia (green-blind)
#8A7C2B
Tritanopia (blue-blind)
#4F8778
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #508d20;
/* rgb */ color: rgb(80, 141, 32);
/* oklch */ color: oklch(58.0% 0.152 134.7);
Tailwind
colors: {
  custom: {
    50: '#87af64',
    500: '#508d20',
    950: '#000000',
  },
}
SCSS
$custom: #508d20;
$custom-light: #87af64;
$custom-dark: #000000;
JSON
{
  "hex": "#508d20",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 32
  },
  "hsl": {
    "h": 93.578,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.58026,
    "c": 0.15228,
    "h": 134.7
  },
  "luminance": 0.2086
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #508D20

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

Preview Lab → · Contrast checker → · Palette generator →

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