#517D17#517D17

#517D17 is a mid, vivid yellow-green. Relative luminance 0.165; OKLCH L 53.8% C 0.136 H 130.9°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#517D17
RGBrgb(81, 125, 23)
HSLhsl(86, 69%, 29%)
HSVhsv(86, 82%, 49%)
CMYKcmyk(35.2%, 0%, 81.6%, 51%)
CIE-LABlab(47.60, -31.33, 46.56)
CIE-LCHlch(47.60, 56.12, 123.94°)
OKLaboklab(53.77% -0.0891 0.1028)
OKLCHoklch(53.77% 0.136 130.9)
XYZxyz(10.8815, 16.4780, 3.4177)
Luminance0.1648 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517D17 #43177D
analogous
#7D7617 #517D17 #1E7D17
triadic
#517D17 #17517D #7D1751
tetradic
#517D17 #177D76 #43177D #7D171E
square
#517D17 #177D76 #43177D #7D171E
split-complementary
#517D17 #171E7D #76177D
monochromatic
#111A05 #30490D #517D17 #72B121 #93DA35

Accessibility & contrast

On white

4.89
#517D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#517D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517D17
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517D17#FFFFFF#000000##FFFFFF
##517D171.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #517d17;
/* rgb */ color: rgb(81, 125, 23);
/* oklch */ color: oklch(53.8% 0.136 130.9);
Tailwind
colors: {
  custom: {
    50: '#86a35e',
    500: '#517d17',
    950: '#000000',
  },
}
SCSS
$custom: #517d17;
$custom-light: #86a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#517d17",
  "rgb": {
    "r": 81,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 85.882,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.53771,
    "c": 0.136,
    "h": 130.9
  },
  "luminance": 0.16478
}

Semantic roles & 50–950 ramp

primary
#517D17
secondary
#703EB2
accent
#3CEC88
background
#F8FAF5
surface
#F0F3E9
border
#CBCDC5
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #517D17

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

Preview Lab → · Contrast checker → · Palette generator →

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