#508C20#508C20

#508C20 is a mid, vivid yellow-green. Relative luminance 0.206; OKLCH L 57.8% C 0.151 H 134.6°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#508C20
RGBrgb(80, 140, 32)
HSLhsl(93, 63%, 34%)
HSVhsv(93, 77%, 55%)
CMYKcmyk(42.9%, 0%, 77.1%, 45.1%)
CIE-LABlab(52.47, -37.87, 48.13)
CIE-LCHlch(52.47, 61.24, 128.20°)
OKLaboklab(57.76% -0.106 0.1075)
OKLCHoklch(57.76% 0.151 134.6)
XYZxyz(12.9468, 20.5652, 4.6535)
Luminance0.2057 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508C20 #5C208C
analogous
#868C20 #508C20 #208C26
triadic
#508C20 #20508C #8C2050
tetradic
#508C20 #20868C #5C208C #8C2620
square
#508C20 #20868C #5C208C #8C2620
split-complementary
#508C20 #26208C #8C2086
monochromatic
#172809 #345A15 #508C20 #6CBE2B #8CD750

Accessibility & contrast

On white

4.11
#508C20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#508C20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508C20
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508C20#FFFFFF#000000##000000
##508C201.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#928007
Deuteranopia (green-blind)
#897B2B
Tritanopia (blue-blind)
#4F8677
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508c20;
/* rgb */ color: rgb(80, 140, 32);
/* oklch */ color: oklch(57.8% 0.151 134.6);
Tailwind
colors: {
  custom: {
    50: '#87ae64',
    500: '#508c20',
    950: '#000000',
  },
}
SCSS
$custom: #508c20;
$custom-light: #87ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#508c20",
  "rgb": {
    "r": 80,
    "g": 140,
    "b": 32
  },
  "hsl": {
    "h": 93.333,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.5776,
    "c": 0.151,
    "h": 134.6
  },
  "luminance": 0.20566
}

Semantic roles & 50–950 ramp

primary
#508C20
secondary
#8A4EBA
accent
#42E69D
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508C20

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

Preview Lab → · Contrast checker → · Palette generator →

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