#508018#508018

#508018 is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.5% C 0.140 H 132.0°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#508018
RGBrgb(80, 128, 24)
HSLhsl(88, 68%, 30%)
HSVhsv(88, 81%, 50%)
CMYKcmyk(37.5%, 0%, 81.3%, 49.8%)
CIE-LABlab(48.52, -33.04, 47.08)
CIE-LCHlch(48.52, 57.52, 125.06°)
OKLaboklab(54.52% -0.0936 0.104)
OKLCHoklch(54.52% 0.14 132)
XYZxyz(11.1922, 17.2093, 3.5960)
Luminance0.1721 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508018 #481880
analogous
#807C18 #508018 #1C8018
triadic
#508018 #185080 #801850
tetradic
#508018 #18807C #481880 #80181C
square
#508018 #18807C #481880 #80181C
split-complementary
#508018 #181C80 #7C1880
monochromatic
#101A05 #304C0E #508018 #70B422 #8FDA39

Accessibility & contrast

On white

4.73
#508018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#508018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #508018
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508018#FFFFFF#000000##FFFFFF
##5080181.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#7F7223
Tritanopia (blue-blind)
#517A6D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #508018;
/* rgb */ color: rgb(80, 128, 24);
/* oklch */ color: oklch(54.5% 0.140 132.0);
Tailwind
colors: {
  custom: {
    50: '#86a55f',
    500: '#508018',
    950: '#000000',
  },
}
SCSS
$custom: #508018;
$custom-light: #86a55f;
$custom-dark: #000000;
JSON
{
  "hex": "#508018",
  "rgb": {
    "r": 80,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 87.692,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.54515,
    "c": 0.13993,
    "h": 132
  },
  "luminance": 0.1721
}

Semantic roles & 50–950 ramp

primary
#508018
secondary
#7540B4
accent
#3DEB8D
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #508018

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

Preview Lab → · Contrast checker → · Palette generator →

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