#517F20#517F20

#517F20 is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.4% C 0.133 H 132.1°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#517F20
RGBrgb(81, 127, 32)
HSLhsl(89, 60%, 31%)
HSVhsv(89, 75%, 50%)
CMYKcmyk(36.2%, 0%, 74.8%, 50.2%)
CIE-LABlab(48.30, -31.71, 44.04)
CIE-LCHlch(48.30, 54.27, 125.76°)
OKLaboklab(54.36% -0.0894 0.0989)
OKLCHoklch(54.36% 0.133 132.1)
XYZxyz(11.2433, 17.0319, 4.0613)
Luminance0.1703 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517F20 #4E207F
analogous
#7F7D20 #517F20 #217F20
triadic
#517F20 #20517F #7F2051
tetradic
#517F20 #207F7D #4E207F #7F2021
square
#517F20 #207F7D #4E207F #7F2021
split-complementary
#517F20 #20217F #7D207F
monochromatic
#131D07 #324E14 #517F20 #70B02C #8FD148

Accessibility & contrast

On white

4.77
#517F20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#517F20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517F20
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517F20#FFFFFF#000000##FFFFFF
##517F201.004.774.414.77
#FFFFFF4.771.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#85750F
Deuteranopia (green-blind)
#7E7129
Tritanopia (blue-blind)
#527A6D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #517f20;
/* rgb */ color: rgb(81, 127, 32);
/* oklch */ color: oklch(54.4% 0.133 132.1);
Tailwind
colors: {
  custom: {
    50: '#86a462',
    500: '#517f20',
    950: '#000000',
  },
}
SCSS
$custom: #517f20;
$custom-light: #86a462;
$custom-dark: #000000;
JSON
{
  "hex": "#517f20",
  "rgb": {
    "r": 81,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 89.053,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54364,
    "c": 0.13337,
    "h": 132.1
  },
  "luminance": 0.17032
}

Semantic roles & 50–950 ramp

primary
#517F20
secondary
#7C49B2
accent
#45E391
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #517F20

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

Preview Lab → · Contrast checker → · Palette generator →

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