#508E18#508E18

#508E18 is a mid, vivid yellow-green. Relative luminance 0.211; OKLCH L 58.2% C 0.158 H 134.3°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#508E18
RGBrgb(80, 142, 24)
HSLhsl(92, 71%, 33%)
HSVhsv(92, 83%, 56%)
CMYKcmyk(43.7%, 0%, 83.1%, 44.3%)
CIE-LABlab(53.08, -39.17, 51.27)
CIE-LCHlch(53.08, 64.52, 127.38°)
OKLaboklab(58.24% -0.1101 0.1129)
OKLCHoklch(58.24% 0.158 134.3)
XYZxyz(13.1459, 21.1167, 4.2472)
Luminance0.2112 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508E18 #56188E
analogous
#8B8E18 #508E18 #188E1B
triadic
#508E18 #18508E #8E1850
tetradic
#508E18 #188B8E #56188E #8E1B18
square
#508E18 #188B8E #56188E #8E1B18
split-complementary
#508E18 #1B188E #8E188B
monochromatic
#152506 #335A0F #508E18 #6DC221 #8CDF41

Accessibility & contrast

On white

4.02
#508E18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#508E18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508E18
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508E18#FFFFFF#000000##000000
##508E181.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#8B7D26
Tritanopia (blue-blind)
#4F8879
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #508e18;
/* rgb */ color: rgb(80, 142, 24);
/* oklch */ color: oklch(58.2% 0.158 134.3);
Tailwind
colors: {
  custom: {
    50: '#87af61',
    500: '#508e18',
    950: '#000000',
  },
}
SCSS
$custom: #508e18;
$custom-light: #87af61;
$custom-dark: #000000;
JSON
{
  "hex": "#508e18",
  "rgb": {
    "r": 80,
    "g": 142,
    "b": 24
  },
  "hsl": {
    "h": 91.525,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.58244,
    "c": 0.15763,
    "h": 134.3
  },
  "luminance": 0.21117
}

Semantic roles & 50–950 ramp

primary
#508E18
secondary
#8442C0
accent
#3AEE98
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #508E18

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

Preview Lab → · Contrast checker → · Palette generator →

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