#508F20#508F20

#508F20 is a mid, vivid yellow-green. Relative luminance 0.215; OKLCH L 58.6% C 0.155 H 135.0°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#508F20
RGBrgb(80, 143, 32)
HSLhsl(94, 63%, 34%)
HSVhsv(94, 78%, 56%)
CMYKcmyk(44.1%, 0%, 77.6%, 43.9%)
CIE-LABlab(53.44, -39.15, 49.07)
CIE-LCHlch(53.44, 62.77, 128.58°)
OKLaboklab(58.56% -0.1095 0.1095)
OKLCHoklch(58.56% 0.155 135)
XYZxyz(13.3911, 21.4539, 4.8016)
Luminance0.2145 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508F20 #5F208F
analogous
#888F20 #508F20 #208F27
triadic
#508F20 #20508F #8F2050
tetradic
#508F20 #20888F #5F208F #8F2720
square
#508F20 #20888F #5F208F #8F2720
split-complementary
#508F20 #27208F #8F2088
monochromatic
#182B0A #345D15 #508F20 #6CC12B #8CD851

Accessibility & contrast

On white

3.97
#508F20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#508F20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508F20
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508F20#FFFFFF#000000##000000
##508F201.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#958305
Deuteranopia (green-blind)
#8C7E2C
Tritanopia (blue-blind)
#4E897A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #508f20;
/* rgb */ color: rgb(80, 143, 32);
/* oklch */ color: oklch(58.6% 0.155 135.0);
Tailwind
colors: {
  custom: {
    50: '#87b064',
    500: '#508f20',
    950: '#000000',
  },
}
SCSS
$custom: #508f20;
$custom-light: #87b064;
$custom-dark: #000000;
JSON
{
  "hex": "#508f20",
  "rgb": {
    "r": 80,
    "g": 143,
    "b": 32
  },
  "hsl": {
    "h": 94.054,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58557,
    "c": 0.15484,
    "h": 135
  },
  "luminance": 0.21455
}

Semantic roles & 50–950 ramp

primary
#508F20
secondary
#8D4FBB
accent
#41E69F
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508F20

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

Preview Lab → · Contrast checker → · Palette generator →

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