#508A18#508A18

#508A18 is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.2% C 0.153 H 133.7°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#508A18
RGBrgb(80, 138, 24)
HSLhsl(91, 70%, 32%)
HSVhsv(91, 83%, 54%)
CMYKcmyk(42%, 0%, 82.6%, 45.9%)
CIE-LABlab(51.78, -37.46, 50.08)
CIE-LCHlch(51.78, 62.54, 126.80°)
OKLaboklab(57.18% -0.1055 0.1104)
OKLCHoklch(57.18% 0.153 133.7)
XYZxyz(12.5614, 19.9477, 4.0524)
Luminance0.1995 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508A18 #52188A
analogous
#898A18 #508A18 #188A19
triadic
#508A18 #18508A #8A1850
tetradic
#508A18 #18898A #52188A #8A1918
square
#508A18 #18898A #52188A #8A1918
split-complementary
#508A18 #19188A #8A1889
monochromatic
#142206 #32560F #508A18 #6EBE21 #8DDE3F

Accessibility & contrast

On white

4.21
#508A18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#508A18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508A18
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508A18#FFFFFF#000000##000000
##508A181.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#887A25
Tritanopia (blue-blind)
#508475
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #508a18;
/* rgb */ color: rgb(80, 138, 24);
/* oklch */ color: oklch(57.2% 0.153 133.7);
Tailwind
colors: {
  custom: {
    50: '#87ac60',
    500: '#508a18',
    950: '#000000',
  },
}
SCSS
$custom: #508a18;
$custom-light: #87ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#508a18",
  "rgb": {
    "r": 80,
    "g": 138,
    "b": 24
  },
  "hsl": {
    "h": 90.526,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.57179,
    "c": 0.15265,
    "h": 133.7
  },
  "luminance": 0.19948
}

Semantic roles & 50–950 ramp

primary
#508A18
secondary
#8040BD
accent
#3BED95
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #508A18

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

Preview Lab → · Contrast checker → · Palette generator →

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