#508D1B#508D1B

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

Color values

HEX#508D1B
RGBrgb(80, 141, 27)
HSLhsl(92, 68%, 33%)
HSVhsv(92, 81%, 55%)
CMYKcmyk(43.3%, 0%, 80.9%, 44.7%)
CIE-LABlab(52.77, -38.59, 50.08)
CIE-LCHlch(52.77, 63.22, 127.62°)
OKLaboklab(57.99% -0.1083 0.1108)
OKLCHoklch(57.99% 0.155 134.3)
XYZxyz(13.0307, 20.8336, 4.3714)
Luminance0.2083 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D1B #581B8D
analogous
#898D1B #508D1B #1B8D1F
triadic
#508D1B #1B508D #8D1B50
tetradic
#508D1B #1B898D #581B8D #8D1F1B
square
#508D1B #1B898D #581B8D #8D1F1B
split-complementary
#508D1B #1F1B8D #8D1B89
monochromatic
#162607 #335A11 #508D1B #6DC025 #8CDC47

Accessibility & contrast

On white

4.06
#508D1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#508D1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508D1B
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508D1B#FFFFFF#000000##000000
##508D1B1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#8B7C28
Tritanopia (blue-blind)
#4F8778
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #508d1b;
/* rgb */ color: rgb(80, 141, 27);
/* oklch */ color: oklch(58.0% 0.155 134.3);
Tailwind
colors: {
  custom: {
    50: '#87af62',
    500: '#508d1b',
    950: '#000000',
  },
}
SCSS
$custom: #508d1b;
$custom-light: #87af62;
$custom-dark: #000000;
JSON
{
  "hex": "#508d1b",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 27
  },
  "hsl": {
    "h": 92.105,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57994,
    "c": 0.15497,
    "h": 134.3
  },
  "luminance": 0.20834
}

Semantic roles & 50–950 ramp

primary
#508D1B
secondary
#8646BD
accent
#3DEB9A
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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