#508C18#508C18

#508C18 is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.7% C 0.155 H 134.0°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#508C18
RGBrgb(80, 140, 24)
HSLhsl(91, 71%, 32%)
HSVhsv(91, 83%, 55%)
CMYKcmyk(42.9%, 0%, 82.9%, 45.1%)
CIE-LABlab(52.43, -38.32, 50.68)
CIE-LCHlch(52.43, 63.53, 127.09°)
OKLaboklab(57.71% -0.1078 0.1116)
OKLCHoklch(57.71% 0.155 134)
XYZxyz(12.8510, 20.5269, 4.1489)
Luminance0.2053 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508C18 #54188C
analogous
#8A8C18 #508C18 #188C1A
triadic
#508C18 #18508C #8C1850
tetradic
#508C18 #188A8C #54188C #8C1A18
square
#508C18 #188A8C #54188C #8C1A18
split-complementary
#508C18 #1A188C #8C188A
monochromatic
#142406 #32580F #508C18 #6EC021 #8CDE40

Accessibility & contrast

On white

4.11
#508C18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#508C18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508C18
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508C18#FFFFFF#000000##000000
##508C181.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#8A7B26
Tritanopia (blue-blind)
#4F8677
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #508c18;
/* rgb */ color: rgb(80, 140, 24);
/* oklch */ color: oklch(57.7% 0.155 134.0);
Tailwind
colors: {
  custom: {
    50: '#87ae60',
    500: '#508c18',
    950: '#000000',
  },
}
SCSS
$custom: #508c18;
$custom-light: #87ae60;
$custom-dark: #000000;
JSON
{
  "hex": "#508c18",
  "rgb": {
    "r": 80,
    "g": 140,
    "b": 24
  },
  "hsl": {
    "h": 91.034,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.57711,
    "c": 0.15515,
    "h": 134
  },
  "luminance": 0.20528
}

Semantic roles & 50–950 ramp

primary
#508C18
secondary
#8241BF
accent
#3AED97
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #508C18

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

Preview Lab → · Contrast checker → · Palette generator →

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