#508C17#508C17

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

Color values

HEX#508C17
RGBrgb(80, 140, 23)
HSLhsl(91, 72%, 32%)
HSVhsv(91, 84%, 55%)
CMYKcmyk(42.9%, 0%, 83.6%, 45.1%)
CIE-LABlab(52.42, -38.37, 50.96)
CIE-LCHlch(52.42, 63.79, 126.98°)
OKLaboklab(57.71% -0.108 0.1121)
OKLCHoklch(57.71% 0.156 133.9)
XYZxyz(12.8408, 20.5228, 4.0951)
Luminance0.2052 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508C17 #53178C
analogous
#8B8C17 #508C17 #178C18
triadic
#508C17 #17508C #8C1750
tetradic
#508C17 #178B8C #53178C #8C1817
square
#508C17 #178B8C #53178C #8C1817
split-complementary
#508C17 #18178C #8C178B
monochromatic
#142306 #32570E #508C17 #6EC120 #8DDF3E

Accessibility & contrast

On white

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

On black

5.10
#508C17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508C17
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508C17#FFFFFF#000000##000000
##508C171.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #508c17;
/* rgb */ color: rgb(80, 140, 23);
/* oklch */ color: oklch(57.7% 0.156 133.9);
Tailwind
colors: {
  custom: {
    50: '#87ae60',
    500: '#508c17',
    950: '#000000',
  },
}
SCSS
$custom: #508c17;
$custom-light: #87ae60;
$custom-dark: #000000;
JSON
{
  "hex": "#508c17",
  "rgb": {
    "r": 80,
    "g": 140,
    "b": 23
  },
  "hsl": {
    "h": 90.769,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.57706,
    "c": 0.1556,
    "h": 133.9
  },
  "luminance": 0.20524
}

Semantic roles & 50–950 ramp

primary
#508C17
secondary
#813FBF
accent
#39EF96
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #508C17

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

Preview Lab → · Contrast checker → · Palette generator →

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