#517D20#517D20

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

Color values

HEX#517D20
RGBrgb(81, 125, 32)
HSLhsl(88, 59%, 31%)
HSVhsv(88, 74%, 49%)
CMYKcmyk(35.2%, 0%, 74.4%, 51%)
CIE-LABlab(47.65, -30.78, 43.39)
CIE-LCHlch(47.65, 53.20, 125.36°)
OKLaboklab(53.83% -0.0869 0.0976)
OKLCHoklch(53.83% 0.131 131.7)
XYZxyz(10.9875, 16.5204, 3.9761)
Luminance0.1652 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517D20 #4C207D
analogous
#7D7A20 #517D20 #227D20
triadic
#517D20 #20517D #7D2051
tetradic
#517D20 #207D7A #4C207D #7D2022
square
#517D20 #207D7A #4C207D #7D2022
split-complementary
#517D20 #20227D #7A207D
monochromatic
#121C07 #314C14 #517D20 #71AE2C #8FD047

Accessibility & contrast

On white

4.88
#517D20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #517D20
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517D20#FFFFFF#000000##FFFFFF
##517D201.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837310
Deuteranopia (green-blind)
#7D7029
Tritanopia (blue-blind)
#52786B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #517d20;
/* rgb */ color: rgb(81, 125, 32);
/* oklch */ color: oklch(53.8% 0.131 131.7);
Tailwind
colors: {
  custom: {
    50: '#86a362',
    500: '#517d20',
    950: '#000000',
  },
}
SCSS
$custom: #517d20;
$custom-light: #86a362;
$custom-dark: #000000;
JSON
{
  "hex": "#517d20",
  "rgb": {
    "r": 81,
    "g": 125,
    "b": 32
  },
  "hsl": {
    "h": 88.387,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53833,
    "c": 0.13067,
    "h": 131.7
  },
  "luminance": 0.16521
}

Semantic roles & 50–950 ramp

primary
#517D20
secondary
#7A49B0
accent
#45E290
background
#F8FAF6
surface
#F0F3EB
border
#CBCDC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #517D20

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

Preview Lab → · Contrast checker → · Palette generator →

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