#508D18#508D18

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

Color values

HEX#508D18
RGBrgb(80, 141, 24)
HSLhsl(91, 71%, 32%)
HSVhsv(91, 83%, 55%)
CMYKcmyk(43.3%, 0%, 83%, 44.7%)
CIE-LABlab(52.75, -38.75, 50.97)
CIE-LCHlch(52.75, 64.03, 127.24°)
OKLaboklab(57.98% -0.1089 0.1122)
OKLCHoklch(57.98% 0.156 134.1)
XYZxyz(12.9978, 20.8205, 4.1979)
Luminance0.2082 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508D18 #55188D
analogous
#8B8D18 #508D18 #188D1B
triadic
#508D18 #18508D #8D1850
tetradic
#508D18 #188B8D #55188D #8D1B18
square
#508D18 #188B8D #55188D #8D1B18
split-complementary
#508D18 #1B188D #8D188B
monochromatic
#152406 #32590F #508D18 #6EC121 #8CDF41

Accessibility & contrast

On white

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

On black

5.16
#508D18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508D18
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508D18#FFFFFF#000000##000000
##508D181.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #508d18;
/* rgb */ color: rgb(80, 141, 24);
/* oklch */ color: oklch(58.0% 0.156 134.1);
Tailwind
colors: {
  custom: {
    50: '#87af61',
    500: '#508d18',
    950: '#000000',
  },
}
SCSS
$custom: #508d18;
$custom-light: #87af61;
$custom-dark: #000000;
JSON
{
  "hex": "#508d18",
  "rgb": {
    "r": 80,
    "g": 141,
    "b": 24
  },
  "hsl": {
    "h": 91.282,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.57978,
    "c": 0.15639,
    "h": 134.1
  },
  "luminance": 0.20821
}

Semantic roles & 50–950 ramp

primary
#508D18
secondary
#8342BF
accent
#3AEE98
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #508D18

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

Preview Lab → · Contrast checker → · Palette generator →

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