#508D31#508D31

#508D31 is a mid, vivid yellow-green. Relative luminance 0.210; OKLCH L 58.2% C 0.140 H 136.7°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#508D31
RGBrgb(80, 141, 49)
HSLhsl(100, 48%, 37%)
HSVhsv(100, 65%, 55%)
CMYKcmyk(43.3%, 0%, 65.2%, 44.7%)
CIE-LABlab(52.92, -36.94, 41.69)
CIE-LCHlch(52.92, 55.70, 131.54°)
OKLaboklab(58.17% -0.1022 0.0964)
OKLCHoklch(58.17% 0.14 136.7)
XYZxyz(13.3871, 20.9762, 6.2486)
Luminance0.2098 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D31 #6E318D
analogous
#7E8D31 #508D31 #318D40
triadic
#508D31 #31508D #8D3150
tetradic
#508D31 #317E8D #6E318D #8D4031
square
#508D31 #317E8D #6E318D #8D4031
split-complementary
#508D31 #40318D #8D317E
monochromatic
#1C3211 #366021 #508D31 #6ABA41 #8DCC6C

Accessibility & contrast

On white

4.04
#508D31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#508D31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508D31
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508D31#FFFFFF#000000##000000
##508D311.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#928226
Deuteranopia (green-blind)
#897C39
Tritanopia (blue-blind)
#4D887A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #508d31;
/* rgb */ color: rgb(80, 141, 49);
/* oklch */ color: oklch(58.2% 0.140 136.7);
Tailwind
colors: {
  custom: {
    50: '#86af6d',
    500: '#508d31',
    950: '#000000',
  },
}
SCSS
$custom: #508d31;
$custom-light: #86af6d;
$custom-dark: #000000;
JSON
{
  "hex": "#508d31",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 49
  },
  "hsl": {
    "h": 99.783,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.58172,
    "c": 0.14049,
    "h": 136.7
  },
  "luminance": 0.20977
}

Semantic roles & 50–950 ramp

primary
#508D31
secondary
#9A66B4
accent
#50D8AA
background
#F8FAF6
surface
#F0F4EC
border
#CBCEC7
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508D31

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

Preview Lab → · Contrast checker → · Palette generator →

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