#508D16#508D16

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

Color values

HEX#508D16
RGBrgb(80, 141, 22)
HSLhsl(91, 73%, 32%)
HSVhsv(91, 84%, 55%)
CMYKcmyk(43.3%, 0%, 84.4%, 44.7%)
CIE-LABlab(52.74, -38.84, 51.53)
CIE-LCHlch(52.74, 64.53, 127.01°)
OKLaboklab(57.97% -0.1093 0.1131)
OKLCHoklch(57.97% 0.157 134)
XYZxyz(12.9777, 20.8124, 4.0923)
Luminance0.2081 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D16 #53168D
analogous
#8C8D16 #508D16 #168D17
triadic
#508D16 #16508D #8D1650
tetradic
#508D16 #168C8D #53168D #8D1716
square
#508D16 #168C8D #53168D #8D1716
split-complementary
#508D16 #17168D #8D168C
monochromatic
#142305 #32580E #508D16 #6EC21E #8DE13D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508D16#FFFFFF#000000##000000
##508D161.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: #508d16;
/* rgb */ color: rgb(80, 141, 22);
/* oklch */ color: oklch(58.0% 0.157 134.0);
Tailwind
colors: {
  custom: {
    50: '#87af60',
    500: '#508d16',
    950: '#000000',
  },
}
SCSS
$custom: #508d16;
$custom-light: #87af60;
$custom-dark: #000000;
JSON
{
  "hex": "#508d16",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 22
  },
  "hsl": {
    "h": 90.756,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.57968,
    "c": 0.15727,
    "h": 134
  },
  "luminance": 0.20813
}

Semantic roles & 50–950 ramp

primary
#508D16
secondary
#813EC1
accent
#38F096
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #508D16

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

Preview Lab → · Contrast checker → · Palette generator →

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