#508D17#508D17

#508D17 is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 58.0% C 0.157 H 134.1°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#508D17
RGBrgb(80, 141, 23)
HSLhsl(91, 72%, 32%)
HSVhsv(91, 84%, 55%)
CMYKcmyk(43.3%, 0%, 83.7%, 44.7%)
CIE-LABlab(52.75, -38.79, 51.26)
CIE-LCHlch(52.75, 64.28, 127.12°)
OKLaboklab(57.97% -0.1091 0.1127)
OKLCHoklch(57.97% 0.157 134.1)
XYZxyz(12.9876, 20.8164, 4.1441)
Luminance0.2082 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D17 #54178D
analogous
#8B8D17 #508D17 #178D19
triadic
#508D17 #17508D #8D1750
tetradic
#508D17 #178B8D #54178D #8D1917
square
#508D17 #178B8D #54178D #8D1917
split-complementary
#508D17 #19178D #8D178B
monochromatic
#142406 #32580E #508D17 #6EC220 #8CE03F

Accessibility & contrast

On white

4.07
#508D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#508D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508D17
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508D17#FFFFFF#000000##000000
##508D171.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#8B7C25
Tritanopia (blue-blind)
#4F8778
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #508d17;
/* rgb */ color: rgb(80, 141, 23);
/* oklch */ color: oklch(58.0% 0.157 134.1);
Tailwind
colors: {
  custom: {
    50: '#87af60',
    500: '#508d17',
    950: '#000000',
  },
}
SCSS
$custom: #508d17;
$custom-light: #87af60;
$custom-dark: #000000;
JSON
{
  "hex": "#508d17",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 23
  },
  "hsl": {
    "h": 91.017,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.57973,
    "c": 0.15684,
    "h": 134.1
  },
  "luminance": 0.20817
}

Semantic roles & 50–950 ramp

primary
#508D17
secondary
#8240C0
accent
#39EF97
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #508D17

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

Preview Lab → · Contrast checker → · Palette generator →

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