#508017#508017

#508017 is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.5% C 0.140 H 131.9°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#508017
RGBrgb(80, 128, 23)
HSLhsl(87, 70%, 30%)
HSVhsv(87, 82%, 50%)
CMYKcmyk(37.5%, 0%, 82%, 49.8%)
CIE-LABlab(48.52, -33.09, 47.39)
CIE-LCHlch(48.52, 57.80, 124.93°)
OKLaboklab(54.51% -0.0938 0.1045)
OKLCHoklch(54.51% 0.14 131.9)
XYZxyz(11.1820, 17.2052, 3.5422)
Luminance0.1721 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508017 #471780
analogous
#807C17 #508017 #1B8017
triadic
#508017 #175080 #801750
tetradic
#508017 #17807C #471780 #80171B
square
#508017 #17807C #471780 #80171B
split-complementary
#508017 #171B80 #7C1780
monochromatic
#101A05 #304C0E #508017 #70B420 #90DB36

Accessibility & contrast

On white

4.73
#508017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#508017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #508017
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508017#FFFFFF#000000##FFFFFF
##5080171.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#7F7223
Tritanopia (blue-blind)
#517A6D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #508017;
/* rgb */ color: rgb(80, 128, 23);
/* oklch */ color: oklch(54.5% 0.140 131.9);
Tailwind
colors: {
  custom: {
    50: '#86a55e',
    500: '#508017',
    950: '#000000',
  },
}
SCSS
$custom: #508017;
$custom-light: #86a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#508017",
  "rgb": {
    "r": 80,
    "g": 128,
    "b": 23
  },
  "hsl": {
    "h": 87.429,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.54509,
    "c": 0.14044,
    "h": 131.9
  },
  "luminance": 0.17206
}

Semantic roles & 50–950 ramp

primary
#508017
secondary
#743EB4
accent
#3BEC8C
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #508017

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

Preview Lab → · Contrast checker → · Palette generator →

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