#508A17#508A17

#508A17 is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.2% C 0.153 H 133.6°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#508A17
RGBrgb(80, 138, 23)
HSLhsl(90, 71%, 32%)
HSVhsv(90, 83%, 54%)
CMYKcmyk(42%, 0%, 83.3%, 45.9%)
CIE-LABlab(51.77, -37.51, 50.37)
CIE-LCHlch(51.77, 62.80, 126.67°)
OKLaboklab(57.17% -0.1057 0.1108)
OKLCHoklch(57.17% 0.153 133.6)
XYZxyz(12.5512, 19.9436, 3.9986)
Luminance0.1994 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508A17 #51178A
analogous
#8A8A17 #508A17 #178A18
triadic
#508A17 #17508A #8A1750
tetradic
#508A17 #178A8A #51178A #8A1817
square
#508A17 #178A8A #51178A #8A1817
split-complementary
#508A17 #18178A #8A178A
monochromatic
#132106 #32560E #508A17 #6EBE20 #8DDF3D

Accessibility & contrast

On white

4.21
#508A17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#508A17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508A17
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508A17#FFFFFF#000000##000000
##508A171.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#887A25
Tritanopia (blue-blind)
#508475
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #508a17;
/* rgb */ color: rgb(80, 138, 23);
/* oklch */ color: oklch(57.2% 0.153 133.6);
Tailwind
colors: {
  custom: {
    50: '#87ac60',
    500: '#508a17',
    950: '#000000',
  },
}
SCSS
$custom: #508a17;
$custom-light: #87ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#508a17",
  "rgb": {
    "r": 80,
    "g": 138,
    "b": 23
  },
  "hsl": {
    "h": 90.261,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.57174,
    "c": 0.15311,
    "h": 133.6
  },
  "luminance": 0.19944
}

Semantic roles & 50–950 ramp

primary
#508A17
secondary
#7F3FBE
accent
#3AEE95
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #508A17

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

Preview Lab → · Contrast checker → · Palette generator →

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