#508F17#508F17

#508F17 is a mid, vivid yellow-green. Relative luminance 0.214; OKLCH L 58.5% C 0.159 H 134.4°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#508F17
RGBrgb(80, 143, 23)
HSLhsl(92, 72%, 33%)
HSVhsv(92, 84%, 56%)
CMYKcmyk(44.1%, 0%, 83.9%, 43.9%)
CIE-LABlab(53.40, -39.64, 51.84)
CIE-LCHlch(53.40, 65.26, 127.40°)
OKLaboklab(58.51% -0.1114 0.1139)
OKLCHoklch(58.51% 0.159 134.4)
XYZxyz(13.2851, 21.4115, 4.2433)
Luminance0.2141 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508F17 #56178F
analogous
#8C8F17 #508F17 #178F1A
triadic
#508F17 #17508F #8F1750
tetradic
#508F17 #178C8F #56178F #8F1A17
square
#508F17 #178C8F #56178F #8F1A17
split-complementary
#508F17 #1A178F #8F178C
monochromatic
#152606 #335A0F #508F17 #6DC41F #8CE040

Accessibility & contrast

On white

3.98
#508F17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#508F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508F17
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508F17#FFFFFF#000000##000000
##508F171.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#8C7E26
Tritanopia (blue-blind)
#4F8979
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #508f17;
/* rgb */ color: rgb(80, 143, 23);
/* oklch */ color: oklch(58.5% 0.159 134.4);
Tailwind
colors: {
  custom: {
    50: '#87b061',
    500: '#508f17',
    950: '#000000',
  },
}
SCSS
$custom: #508f17;
$custom-light: #87b061;
$custom-dark: #000000;
JSON
{
  "hex": "#508f17",
  "rgb": {
    "r": 80,
    "g": 143,
    "b": 23
  },
  "hsl": {
    "h": 91.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.58505,
    "c": 0.15931,
    "h": 134.4
  },
  "luminance": 0.21412
}

Semantic roles & 50–950 ramp

primary
#508F17
secondary
#8441C1
accent
#39EF98
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #508F17

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

Preview Lab → · Contrast checker → · Palette generator →

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