#508D1A#508D1A

#508D1A 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#508D1A
RGBrgb(80, 141, 26)
HSLhsl(92, 69%, 33%)
HSVhsv(92, 82%, 55%)
CMYKcmyk(43.3%, 0%, 81.6%, 44.7%)
CIE-LABlab(52.76, -38.65, 50.39)
CIE-LCHlch(52.76, 63.50, 127.49°)
OKLaboklab(57.99% -0.1085 0.1113)
OKLCHoklch(57.99% 0.155 134.3)
XYZxyz(13.0193, 20.8291, 4.3115)
Luminance0.2083 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D1A #571A8D
analogous
#898D1A #508D1A #1A8D1D
triadic
#508D1A #1A508D #8D1A50
tetradic
#508D1A #1A898D #571A8D #8D1D1A
square
#508D1A #1A898D #571A8D #8D1D1A
split-complementary
#508D1A #1D1A8D #8D1A89
monochromatic
#152607 #335910 #508D1A #6DC124 #8CDD45

Accessibility & contrast

On white

4.07
#508D1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##508D1A#FFFFFF#000000##000000
##508D1A1.004.075.175.17
#FFFFFF4.071.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #508d1a;
/* rgb */ color: rgb(80, 141, 26);
/* oklch */ color: oklch(58.0% 0.155 134.3);
Tailwind
colors: {
  custom: {
    50: '#87af61',
    500: '#508d1a',
    950: '#000000',
  },
}
SCSS
$custom: #508d1a;
$custom-light: #87af61;
$custom-dark: #000000;
JSON
{
  "hex": "#508d1a",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 26
  },
  "hsl": {
    "h": 91.826,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.57988,
    "c": 0.15546,
    "h": 134.3
  },
  "luminance": 0.2083
}

Semantic roles & 50–950 ramp

primary
#508D1A
secondary
#8545BE
accent
#3CEC99
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #508D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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