#508117#508117

#508117 is a mid, vivid yellow-green. Relative luminance 0.175; OKLCH L 54.8% C 0.142 H 132.1°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#508117
RGBrgb(80, 129, 23)
HSLhsl(88, 70%, 30%)
HSVhsv(88, 82%, 51%)
CMYKcmyk(38%, 0%, 82.2%, 49.4%)
CIE-LABlab(48.84, -33.55, 47.69)
CIE-LCHlch(48.84, 58.31, 125.12°)
OKLaboklab(54.78% -0.095 0.1052)
OKLCHoklch(54.78% 0.142 132.1)
XYZxyz(11.3131, 17.4674, 3.5859)
Luminance0.1747 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508117 #481781
analogous
#817D17 #508117 #1B8117
triadic
#508117 #175081 #811750
tetradic
#508117 #17817D #481781 #81171B
square
#508117 #17817D #481781 #81171B
split-complementary
#508117 #171B81 #7D1781
monochromatic
#101A05 #304D0E #508117 #70B520 #8FDB37

Accessibility & contrast

On white

4.67
#508117 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#508117 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #508117
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508117#FFFFFF#000000##FFFFFF
##5081171.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#807323
Tritanopia (blue-blind)
#517B6E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #508117;
/* rgb */ color: rgb(80, 129, 23);
/* oklch */ color: oklch(54.8% 0.142 132.1);
Tailwind
colors: {
  custom: {
    50: '#86a65e',
    500: '#508117',
    950: '#000000',
  },
}
SCSS
$custom: #508117;
$custom-light: #86a65e;
$custom-dark: #000000;
JSON
{
  "hex": "#508117",
  "rgb": {
    "r": 80,
    "g": 129,
    "b": 23
  },
  "hsl": {
    "h": 87.736,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.54776,
    "c": 0.14172,
    "h": 132.1
  },
  "luminance": 0.17468
}

Semantic roles & 50–950 ramp

primary
#508117
secondary
#753EB5
accent
#3BED8D
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #508117

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

Preview Lab → · Contrast checker → · Palette generator →

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