#508B31#508B31

#508B31 is a mid, vivid yellow-green. Relative luminance 0.204; OKLCH L 57.6% C 0.138 H 136.5°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#508B31
RGBrgb(80, 139, 49)
HSLhsl(99, 48%, 37%)
HSVhsv(99, 65%, 55%)
CMYKcmyk(42.4%, 0%, 64.7%, 45.5%)
CIE-LABlab(52.28, -36.06, 40.98)
CIE-LCHlch(52.28, 54.58, 131.35°)
OKLaboklab(57.64% -0.0998 0.0949)
OKLCHoklch(57.64% 0.138 136.5)
XYZxyz(13.0949, 20.3917, 6.1511)
Luminance0.2039 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508B31 #6C318B
analogous
#7D8B31 #508B31 #318B3F
triadic
#508B31 #31508B #8B3150
tetradic
#508B31 #317D8B #6C318B #8B3F31
square
#508B31 #317D8B #6C318B #8B3F31
split-complementary
#508B31 #3F318B #8B317D
monochromatic
#1C3111 #365E21 #508B31 #6AB841 #8CCB6B

Accessibility & contrast

On white

4.14
#508B31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#508B31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508B31
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508B31#FFFFFF#000000##000000
##508B311.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#908026
Deuteranopia (green-blind)
#887B38
Tritanopia (blue-blind)
#4E8678
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508b31;
/* rgb */ color: rgb(80, 139, 49);
/* oklch */ color: oklch(57.6% 0.138 136.5);
Tailwind
colors: {
  custom: {
    50: '#86ad6d',
    500: '#508b31',
    950: '#000000',
  },
}
SCSS
$custom: #508b31;
$custom-light: #86ad6d;
$custom-dark: #000000;
JSON
{
  "hex": "#508b31",
  "rgb": {
    "r": 80,
    "g": 139,
    "b": 49
  },
  "hsl": {
    "h": 99.333,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.57644,
    "c": 0.13773,
    "h": 136.5
  },
  "luminance": 0.20392
}

Semantic roles & 50–950 ramp

primary
#508B31
secondary
#9865B2
accent
#50D7A9
background
#F8FAF6
surface
#F0F4EC
border
#CBCEC7
text
#0B1007
muted
#7C7F7A

Preview Lab

Preview with #508B31

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

Preview Lab → · Contrast checker → · Palette generator →

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