#508131#508131

#508131 is a mid, vivid yellow-green. Relative luminance 0.176; OKLCH L 55.0% C 0.123 H 135.1°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#508131
RGBrgb(80, 129, 49)
HSLhsl(97, 45%, 35%)
HSVhsv(97, 62%, 51%)
CMYKcmyk(38%, 0%, 62%, 49.4%)
CIE-LABlab(49.04, -31.53, 37.36)
CIE-LCHlch(49.04, 48.89, 130.16°)
OKLaboklab(55% -0.0875 0.0872)
OKLCHoklch(55% 0.124 135.1)
XYZxyz(11.7126, 17.6272, 5.6904)
Luminance0.1763 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508131 #623181
analogous
#788131 #508131 #31813A
triadic
#508131 #315081 #813150
tetradic
#508131 #317881 #623181 #813A31
square
#508131 #317881 #623181 #813A31
split-complementary
#508131 #3A3181 #813178
monochromatic
#19280F #345520 #508131 #6CAD42 #8CC567

Accessibility & contrast

On white

4.64
#508131 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#508131 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #508131
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508131#FFFFFF#000000##FFFFFF
##5081311.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867728
Deuteranopia (green-blind)
#7F7337
Tritanopia (blue-blind)
#4F7C70
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #508131;
/* rgb */ color: rgb(80, 129, 49);
/* oklch */ color: oklch(55.0% 0.123 135.1);
Tailwind
colors: {
  custom: {
    50: '#85a66c',
    500: '#508131',
    950: '#000000',
  },
}
SCSS
$custom: #508131;
$custom-light: #85a66c;
$custom-dark: #000000;
JSON
{
  "hex": "#508131",
  "rgb": {
    "r": 80,
    "g": 129,
    "b": 49
  },
  "hsl": {
    "h": 96.75,
    "s": 44.944,
    "l": 34.902
  },
  "oklch": {
    "l": 0.55,
    "c": 0.1235,
    "h": 135.1
  },
  "luminance": 0.17628
}

Semantic roles & 50–950 ramp

primary
#508131
secondary
#8F61AD
accent
#53D5A2
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F07
muted
#7C7F7A

Preview Lab

Preview with #508131

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

Preview Lab → · Contrast checker → · Palette generator →

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