#508015#508015

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

Color values

HEX#508015
RGBrgb(80, 128, 21)
HSLhsl(87, 72%, 29%)
HSVhsv(87, 84%, 50%)
CMYKcmyk(37.5%, 0%, 83.6%, 49.8%)
CIE-LABlab(48.51, -33.19, 47.99)
CIE-LCHlch(48.51, 58.35, 124.67°)
OKLaboklab(54.5% -0.0942 0.1055)
OKLCHoklch(54.5% 0.141 131.8)
XYZxyz(11.1627, 17.1975, 3.4406)
Luminance0.1720 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508015 #451580
analogous
#807B15 #508015 #1B8015
triadic
#508015 #155080 #801550
tetradic
#508015 #15807B #451580 #80151B
square
#508015 #15807B #451580 #80151B
split-complementary
#508015 #151B80 #7B1580
monochromatic
#101A04 #2F4B0C #508015 #71B51E #91DD32

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##508015#FFFFFF#000000##FFFFFF
##5080151.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)
#7F7221
Tritanopia (blue-blind)
#517A6D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #508015;
/* rgb */ color: rgb(80, 128, 21);
/* oklch */ color: oklch(54.5% 0.141 131.8);
Tailwind
colors: {
  custom: {
    50: '#86a55d',
    500: '#508015',
    950: '#000000',
  },
}
SCSS
$custom: #508015;
$custom-light: #86a55d;
$custom-dark: #000000;
JSON
{
  "hex": "#508015",
  "rgb": {
    "r": 80,
    "g": 128,
    "b": 21
  },
  "hsl": {
    "h": 86.916,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.54498,
    "c": 0.1414,
    "h": 131.8
  },
  "luminance": 0.17198
}

Semantic roles & 50–950 ramp

primary
#508015
secondary
#723CB5
accent
#39EF8B
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #508015

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

Preview Lab → · Contrast checker → · Palette generator →

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