#508E17#508E17

#508E17 is a mid, vivid yellow-green. Relative luminance 0.211; OKLCH L 58.2% C 0.158 H 134.2°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#508E17
RGBrgb(80, 142, 23)
HSLhsl(91, 72%, 32%)
HSVhsv(91, 84%, 56%)
CMYKcmyk(43.7%, 0%, 83.8%, 44.3%)
CIE-LABlab(53.07, -39.22, 51.55)
CIE-LCHlch(53.07, 64.77, 127.26°)
OKLaboklab(58.24% -0.1102 0.1133)
OKLCHoklch(58.24% 0.158 134.2)
XYZxyz(13.1357, 21.1126, 4.1934)
Luminance0.2111 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508E17 #55178E
analogous
#8B8E17 #508E17 #178E1A
triadic
#508E17 #17508E #8E1750
tetradic
#508E17 #178B8E #55178E #8E1A17
square
#508E17 #178B8E #55178E #8E1A17
split-complementary
#508E17 #1A178E #8E178B
monochromatic
#152506 #32590E #508E17 #6EC320 #8CE03F

Accessibility & contrast

On white

4.02
#508E17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#508E17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508E17
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508E17#FFFFFF#000000##000000
##508E171.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#8C7D26
Tritanopia (blue-blind)
#4F8879
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #508e17;
/* rgb */ color: rgb(80, 142, 23);
/* oklch */ color: oklch(58.2% 0.158 134.2);
Tailwind
colors: {
  custom: {
    50: '#87af60',
    500: '#508e17',
    950: '#000000',
  },
}
SCSS
$custom: #508e17;
$custom-light: #87af60;
$custom-dark: #000000;
JSON
{
  "hex": "#508e17",
  "rgb": {
    "r": 80,
    "g": 142,
    "b": 23
  },
  "hsl": {
    "h": 91.261,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58239,
    "c": 0.15807,
    "h": 134.2
  },
  "luminance": 0.21113
}

Semantic roles & 50–950 ramp

primary
#508E17
secondary
#8340C0
accent
#39EF98
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #508E17

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

Preview Lab → · Contrast checker → · Palette generator →

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