#508A31#508A31

#508A31 is a mid, vivid yellow-green. Relative luminance 0.201; OKLCH L 57.4% C 0.136 H 136.3°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#508A31
RGBrgb(80, 138, 49)
HSLhsl(99, 48%, 37%)
HSVhsv(99, 64%, 54%)
CMYKcmyk(42%, 0%, 64.5%, 45.9%)
CIE-LABlab(51.95, -35.62, 40.62)
CIE-LCHlch(51.95, 54.02, 131.24°)
OKLaboklab(57.38% -0.0986 0.0941)
OKLCHoklch(57.38% 0.136 136.3)
XYZxyz(12.9508, 20.1035, 6.1031)
Luminance0.2010 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508A31 #6B318A
analogous
#7D8A31 #508A31 #318A3F
triadic
#508A31 #31508A #8A3150
tetradic
#508A31 #317D8A #6B318A #8A3F31
square
#508A31 #317D8A #6B318A #8A3F31
split-complementary
#508A31 #3F318A #8A317D
monochromatic
#1C3011 #365D21 #508A31 #6AB741 #8CCA6B

Accessibility & contrast

On white

4.18
#508A31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#508A31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508A31
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508A31#FFFFFF#000000##000000
##508A311.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F26
Deuteranopia (green-blind)
#877A38
Tritanopia (blue-blind)
#4E8577
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508a31;
/* rgb */ color: rgb(80, 138, 49);
/* oklch */ color: oklch(57.4% 0.136 136.3);
Tailwind
colors: {
  custom: {
    50: '#86ac6d',
    500: '#508a31',
    950: '#000000',
  },
}
SCSS
$custom: #508a31;
$custom-light: #86ac6d;
$custom-dark: #000000;
JSON
{
  "hex": "#508a31",
  "rgb": {
    "r": 80,
    "g": 138,
    "b": 49
  },
  "hsl": {
    "h": 99.101,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.57379,
    "c": 0.13633,
    "h": 136.3
  },
  "luminance": 0.20104
}

Semantic roles & 50–950 ramp

primary
#508A31
secondary
#9765B2
accent
#51D7A8
background
#F8FAF6
surface
#F0F4EC
border
#CBCEC7
text
#0B1007
muted
#7C7F7A

Preview Lab

Preview with #508A31

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

Preview Lab → · Contrast checker → · Palette generator →

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