#508D2A#508D2A

#508D2A is a mid, vivid yellow-green. Relative luminance 0.209; OKLCH L 58.1% C 0.146 H 135.8°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#508D2A
RGBrgb(80, 141, 42)
HSLhsl(97, 54%, 36%)
HSVhsv(97, 70%, 55%)
CMYKcmyk(43.3%, 0%, 70.2%, 44.7%)
CIE-LABlab(52.86, -37.56, 44.66)
CIE-LCHlch(52.86, 58.36, 130.07°)
OKLaboklab(58.1% -0.1045 0.1017)
OKLCHoklch(58.1% 0.146 135.8)
XYZxyz(13.2507, 20.9216, 5.5301)
Luminance0.2092 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D2A #672A8D
analogous
#818D2A #508D2A #2A8D36
triadic
#508D2A #2A508D #8D2A50
tetradic
#508D2A #2A818D #672A8D #8D362A
square
#508D2A #2A818D #672A8D #8D362A
split-complementary
#508D2A #362A8D #8D2A81
monochromatic
#1A2F0E #355E1C #508D2A #6BBC38 #8CD061

Accessibility & contrast

On white

4.05
#508D2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#508D2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508D2A
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508D2A#FFFFFF#000000##000000
##508D2A1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#92811B
Deuteranopia (green-blind)
#8A7C33
Tritanopia (blue-blind)
#4E8879
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #508d2a;
/* rgb */ color: rgb(80, 141, 42);
/* oklch */ color: oklch(58.1% 0.146 135.8);
Tailwind
colors: {
  custom: {
    50: '#86af69',
    500: '#508d2a',
    950: '#000000',
  },
}
SCSS
$custom: #508d2a;
$custom-light: #86af69;
$custom-dark: #000000;
JSON
{
  "hex": "#508d2a",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 42
  },
  "hsl": {
    "h": 96.97,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.58104,
    "c": 0.14583,
    "h": 135.8
  },
  "luminance": 0.20922
}

Semantic roles & 50–950 ramp

primary
#508D2A
secondary
#945DB6
accent
#4ADDA5
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #508D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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