#508918#508918

#508918 is a mid, vivid yellow-green. Relative luminance 0.197; OKLCH L 56.9% C 0.151 H 133.6°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#508918
RGBrgb(80, 137, 24)
HSLhsl(90, 70%, 32%)
HSVhsv(90, 82%, 54%)
CMYKcmyk(41.6%, 0%, 82.5%, 46.3%)
CIE-LABlab(51.45, -37.03, 49.79)
CIE-LCHlch(51.45, 62.05, 126.64°)
OKLaboklab(56.91% -0.1043 0.1097)
OKLCHoklch(56.91% 0.151 133.6)
XYZxyz(12.4186, 19.6621, 4.0048)
Luminance0.1966 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508918 #511889
analogous
#898918 #508918 #188918
triadic
#508918 #185089 #891850
tetradic
#508918 #188989 #511889 #891818
square
#508918 #188989 #511889 #891818
split-complementary
#508918 #181889 #891889
monochromatic
#132106 #32550F #508918 #6EBD21 #8DDD3E

Accessibility & contrast

On white

4.26
#508918 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#508918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508918
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508918#FFFFFF#000000##000000
##5089181.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7D00
Deuteranopia (green-blind)
#877925
Tritanopia (blue-blind)
#508374
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #508918;
/* rgb */ color: rgb(80, 137, 24);
/* oklch */ color: oklch(56.9% 0.151 133.6);
Tailwind
colors: {
  custom: {
    50: '#87ac60',
    500: '#508918',
    950: '#000000',
  },
}
SCSS
$custom: #508918;
$custom-light: #87ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#508918",
  "rgb": {
    "r": 80,
    "g": 137,
    "b": 24
  },
  "hsl": {
    "h": 90.265,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56913,
    "c": 0.15139,
    "h": 133.6
  },
  "luminance": 0.19663
}

Semantic roles & 50–950 ramp

primary
#508918
secondary
#7F40BD
accent
#3BED95
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #508918

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

Preview Lab → · Contrast checker → · Palette generator →

#508918 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva