#508D24#508D24

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

Color values

HEX#508D24
RGBrgb(80, 141, 36)
HSLhsl(95, 59%, 35%)
HSVhsv(95, 74%, 55%)
CMYKcmyk(43.3%, 0%, 74.5%, 44.7%)
CIE-LABlab(52.82, -38.03, 47.00)
CIE-LCHlch(52.82, 60.46, 128.97°)
OKLaboklab(58.06% -0.1062 0.1058)
OKLCHoklch(58.06% 0.15 135.1)
XYZxyz(13.1513, 20.8819, 5.0064)
Luminance0.2088 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D24 #61248D
analogous
#858D24 #508D24 #248D2C
triadic
#508D24 #24508D #8D2450
tetradic
#508D24 #24858D #61248D #8D2C24
square
#508D24 #24858D #61248D #8D2C24
split-complementary
#508D24 #2C248D #8D2485
monochromatic
#192B0B #345C18 #508D24 #6CBE30 #8CD457

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508D24#FFFFFF#000000##000000
##508D241.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#928111
Deuteranopia (green-blind)
#8A7C2E
Tritanopia (blue-blind)
#4E8879
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #508d24;
/* rgb */ color: rgb(80, 141, 36);
/* oklch */ color: oklch(58.1% 0.150 135.1);
Tailwind
colors: {
  custom: {
    50: '#87af66',
    500: '#508d24',
    950: '#000000',
  },
}
SCSS
$custom: #508d24;
$custom-light: #87af66;
$custom-dark: #000000;
JSON
{
  "hex": "#508d24",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 36
  },
  "hsl": {
    "h": 94.857,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.58055,
    "c": 0.14987,
    "h": 135.1
  },
  "luminance": 0.20883
}

Semantic roles & 50–950 ramp

primary
#508D24
secondary
#8F54B8
accent
#45E3A1
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #508D24

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

Preview Lab → · Contrast checker → · Palette generator →

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