#507D17#507D17

#507D17 is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.7% C 0.137 H 131.3°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#507D17
RGBrgb(80, 125, 23)
HSLhsl(86, 69%, 29%)
HSVhsv(86, 82%, 49%)
CMYKcmyk(36%, 0%, 81.6%, 51%)
CIE-LABlab(47.54, -31.73, 46.49)
CIE-LCHlch(47.54, 56.28, 124.31°)
OKLaboklab(53.71% -0.0901 0.1026)
OKLCHoklch(53.71% 0.137 131.3)
XYZxyz(10.7964, 16.4341, 3.4137)
Luminance0.1643 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507D17 #44177D
analogous
#7D7717 #507D17 #1D7D17
triadic
#507D17 #17507D #7D1750
tetradic
#507D17 #177D77 #44177D #7D171D
square
#507D17 #177D77 #44177D #7D171D
split-complementary
#507D17 #171D7D #77177D
monochromatic
#111A05 #2F490D #507D17 #71B121 #91DA35

Accessibility & contrast

On white

4.90
#507D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#507D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507D17
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507D17#FFFFFF#000000##FFFFFF
##507D171.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#7D7022
Tritanopia (blue-blind)
#52776A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #507d17;
/* rgb */ color: rgb(80, 125, 23);
/* oklch */ color: oklch(53.7% 0.137 131.3);
Tailwind
colors: {
  custom: {
    50: '#85a35e',
    500: '#507d17',
    950: '#000000',
  },
}
SCSS
$custom: #507d17;
$custom-light: #85a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#507d17",
  "rgb": {
    "r": 80,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 86.471,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.5371,
    "c": 0.13655,
    "h": 131.3
  },
  "luminance": 0.16435
}

Semantic roles & 50–950 ramp

primary
#507D17
secondary
#713EB2
accent
#3CEC8A
background
#F8FAF5
surface
#F0F3E9
border
#CBCDC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #507D17

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

Preview Lab → · Contrast checker → · Palette generator →

#507D17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva