#508D28#508D28

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

Color values

HEX#508D28
RGBrgb(80, 141, 40)
HSLhsl(96, 56%, 35%)
HSVhsv(96, 72%, 55%)
CMYKcmyk(43.3%, 0%, 71.6%, 44.7%)
CIE-LABlab(52.85, -37.73, 45.47)
CIE-LCHlch(52.85, 59.08, 129.68°)
OKLaboklab(58.09% -0.1051 0.1031)
OKLCHoklch(58.09% 0.147 135.5)
XYZxyz(13.2158, 20.9077, 5.3463)
Luminance0.2091 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D28 #65288D
analogous
#828D28 #508D28 #288D33
triadic
#508D28 #28508D #8D2850
tetradic
#508D28 #28828D #65288D #8D3328
square
#508D28 #28828D #65288D #8D3328
split-complementary
#508D28 #33288D #8D2882
monochromatic
#1A2E0D #355D1A #508D28 #6BBD36 #8CD15E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508D28#FFFFFF#000000##000000
##508D281.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)
#928118
Deuteranopia (green-blind)
#8A7C31
Tritanopia (blue-blind)
#4E8879
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #508d28;
/* rgb */ color: rgb(80, 141, 40);
/* oklch */ color: oklch(58.1% 0.147 135.5);
Tailwind
colors: {
  custom: {
    50: '#86af68',
    500: '#508d28',
    950: '#000000',
  },
}
SCSS
$custom: #508d28;
$custom-light: #86af68;
$custom-dark: #000000;
JSON
{
  "hex": "#508d28",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 40
  },
  "hsl": {
    "h": 96.238,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.58087,
    "c": 0.14723,
    "h": 135.5
  },
  "luminance": 0.20908
}

Semantic roles & 50–950 ramp

primary
#508D28
secondary
#925AB7
accent
#49DFA4
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508D28

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

Preview Lab → · Contrast checker → · Palette generator →

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