#508B18#508B18

#508B18 is a mid, vivid yellow-green. Relative luminance 0.202; OKLCH L 57.4% C 0.154 H 133.9°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#508B18
RGBrgb(80, 139, 24)
HSLhsl(91, 71%, 32%)
HSVhsv(91, 83%, 55%)
CMYKcmyk(42.4%, 0%, 82.7%, 45.5%)
CIE-LABlab(52.10, -37.89, 50.38)
CIE-LCHlch(52.10, 63.04, 126.95°)
OKLaboklab(57.45% -0.1066 0.111)
OKLCHoklch(57.45% 0.154 133.9)
XYZxyz(12.7055, 20.2360, 4.1004)
Luminance0.2024 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508B18 #53188B
analogous
#8A8B18 #508B18 #188B1A
triadic
#508B18 #18508B #8B1850
tetradic
#508B18 #188A8B #53188B #8B1A18
square
#508B18 #188A8B #53188B #8B1A18
split-complementary
#508B18 #1A188B #8B188A
monochromatic
#142306 #32570F #508B18 #6EBF21 #8DDE3F

Accessibility & contrast

On white

4.16
#508B18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#508B18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508B18
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508B18#FFFFFF#000000##000000
##508B181.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#897B26
Tritanopia (blue-blind)
#508576
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508b18;
/* rgb */ color: rgb(80, 139, 24);
/* oklch */ color: oklch(57.4% 0.154 133.9);
Tailwind
colors: {
  custom: {
    50: '#87ad60',
    500: '#508b18',
    950: '#000000',
  },
}
SCSS
$custom: #508b18;
$custom-light: #87ad60;
$custom-dark: #000000;
JSON
{
  "hex": "#508b18",
  "rgb": {
    "r": 80,
    "g": 139,
    "b": 24
  },
  "hsl": {
    "h": 90.783,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.57445,
    "c": 0.1539,
    "h": 133.9
  },
  "luminance": 0.20237
}

Semantic roles & 50–950 ramp

primary
#508B18
secondary
#8140BE
accent
#3AED96
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #508B18

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

Preview Lab → · Contrast checker → · Palette generator →

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