#508A20#508A20

#508A20 is a mid, vivid yellow-green. Relative luminance 0.200; OKLCH L 57.2% C 0.148 H 134.3°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#508A20
RGBrgb(80, 138, 32)
HSLhsl(93, 62%, 33%)
HSVhsv(93, 77%, 54%)
CMYKcmyk(42%, 0%, 76.8%, 45.9%)
CIE-LABlab(51.82, -37.00, 47.49)
CIE-LCHlch(51.82, 60.21, 127.92°)
OKLaboklab(57.23% -0.1037 0.1062)
OKLCHoklch(57.23% 0.148 134.3)
XYZxyz(12.6572, 19.9860, 4.5570)
Luminance0.1999 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508A20 #5A208A
analogous
#858A20 #508A20 #208A25
triadic
#508A20 #20508A #8A2050
tetradic
#508A20 #20858A #5A208A #8A2520
square
#508A20 #20858A #5A208A #8A2520
split-complementary
#508A20 #25208A #8A2085
monochromatic
#162709 #335814 #508A20 #6DBC2C #8CD64E

Accessibility & contrast

On white

4.20
#508A20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#508A20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508A20
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508A20#FFFFFF#000000##000000
##508A201.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F09
Deuteranopia (green-blind)
#887A2B
Tritanopia (blue-blind)
#4F8476
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508a20;
/* rgb */ color: rgb(80, 138, 32);
/* oklch */ color: oklch(57.2% 0.148 134.3);
Tailwind
colors: {
  custom: {
    50: '#86ac64',
    500: '#508a20',
    950: '#000000',
  },
}
SCSS
$custom: #508a20;
$custom-light: #86ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#508a20",
  "rgb": {
    "r": 80,
    "g": 138,
    "b": 32
  },
  "hsl": {
    "h": 92.83,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57228,
    "c": 0.14842,
    "h": 134.3
  },
  "luminance": 0.19987
}

Semantic roles & 50–950 ramp

primary
#508A20
secondary
#884DB9
accent
#42E59C
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508A20

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

Preview Lab → · Contrast checker → · Palette generator →

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