#508B20#508B20

#508B20 is a mid, vivid yellow-green. Relative luminance 0.203; OKLCH L 57.5% C 0.150 H 134.5°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#508B20
RGBrgb(80, 139, 32)
HSLhsl(93, 63%, 34%)
HSVhsv(93, 77%, 55%)
CMYKcmyk(42.4%, 0%, 77%, 45.5%)
CIE-LABlab(52.15, -37.44, 47.81)
CIE-LCHlch(52.15, 60.72, 128.06°)
OKLaboklab(57.49% -0.1049 0.1068)
OKLCHoklch(57.49% 0.15 134.5)
XYZxyz(12.8013, 20.2743, 4.6050)
Luminance0.2028 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508B20 #5B208B
analogous
#858B20 #508B20 #208B25
triadic
#508B20 #20508B #8B2050
tetradic
#508B20 #20858B #5B208B #8B2520
square
#508B20 #20858B #5B208B #8B2520
split-complementary
#508B20 #25208B #8B2085
monochromatic
#172809 #335915 #508B20 #6DBD2B #8CD64F

Accessibility & contrast

On white

4.15
#508B20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#508B20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508B20
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508B20#FFFFFF#000000##000000
##508B201.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F08
Deuteranopia (green-blind)
#897B2B
Tritanopia (blue-blind)
#4F8577
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508b20;
/* rgb */ color: rgb(80, 139, 32);
/* oklch */ color: oklch(57.5% 0.150 134.5);
Tailwind
colors: {
  custom: {
    50: '#87ad64',
    500: '#508b20',
    950: '#000000',
  },
}
SCSS
$custom: #508b20;
$custom-light: #87ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#508b20",
  "rgb": {
    "r": 80,
    "g": 139,
    "b": 32
  },
  "hsl": {
    "h": 93.084,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57494,
    "c": 0.14971,
    "h": 134.5
  },
  "luminance": 0.20275
}

Semantic roles & 50–950 ramp

primary
#508B20
secondary
#894DBA
accent
#42E69C
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508B20

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

Preview Lab → · Contrast checker → · Palette generator →

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