#508917#508917

#508917 is a mid, vivid yellow-green. Relative luminance 0.197; OKLCH L 56.9% C 0.152 H 133.5°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#508917
RGBrgb(80, 137, 23)
HSLhsl(90, 71%, 31%)
HSVhsv(90, 83%, 54%)
CMYKcmyk(41.6%, 0%, 83.2%, 46.3%)
CIE-LABlab(51.45, -37.08, 50.08)
CIE-LCHlch(51.45, 62.31, 126.52°)
OKLaboklab(56.91% -0.1045 0.1102)
OKLCHoklch(56.91% 0.152 133.5)
XYZxyz(12.4084, 19.6580, 3.9510)
Luminance0.1966 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508917 #501789
analogous
#898917 #508917 #178917
triadic
#508917 #175089 #891750
tetradic
#508917 #178989 #501789 #891717
square
#508917 #178989 #501789 #891717
split-complementary
#508917 #171789 #891789
monochromatic
#132005 #31550E #508917 #6FBD20 #8DDE3C

Accessibility & contrast

On white

4.26
#508917 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#508917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508917
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508917#FFFFFF#000000##000000
##5089171.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7D00
Deuteranopia (green-blind)
#877925
Tritanopia (blue-blind)
#508374
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #508917;
/* rgb */ color: rgb(80, 137, 23);
/* oklch */ color: oklch(56.9% 0.152 133.5);
Tailwind
colors: {
  custom: {
    50: '#87ac60',
    500: '#508917',
    950: '#000000',
  },
}
SCSS
$custom: #508917;
$custom-light: #87ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#508917",
  "rgb": {
    "r": 80,
    "g": 137,
    "b": 23
  },
  "hsl": {
    "h": 90,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56907,
    "c": 0.15186,
    "h": 133.5
  },
  "luminance": 0.19659
}

Semantic roles & 50–950 ramp

primary
#508917
secondary
#7E3FBD
accent
#3AEE94
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #508917

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

Preview Lab → · Contrast checker → · Palette generator →

#508917 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva