#517D22#517D22

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

Color values

HEX#517D22
RGBrgb(81, 125, 34)
HSLhsl(89, 57%, 31%)
HSVhsv(89, 73%, 49%)
CMYKcmyk(35.2%, 0%, 72.8%, 51%)
CIE-LABlab(47.66, -30.64, 42.60)
CIE-LCHlch(47.66, 52.48, 125.72°)
OKLaboklab(53.85% -0.0864 0.0962)
OKLCHoklch(53.85% 0.129 131.9)
XYZxyz(11.0156, 16.5316, 4.1236)
Luminance0.1653 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517D22 #4E227D
analogous
#7D7B22 #517D22 #237D22
triadic
#517D22 #22517D #7D2251
tetradic
#517D22 #227D7B #4E227D #7D2223
square
#517D22 #227D7B #4E227D #7D2223
split-complementary
#517D22 #22237D #7B227D
monochromatic
#131D08 #324D15 #517D22 #70AD2F #8FCE4B

Accessibility & contrast

On white

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

On black

4.31
#517D22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##517D22#FFFFFF#000000##FFFFFF
##517D221.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #517d22;
/* rgb */ color: rgb(81, 125, 34);
/* oklch */ color: oklch(53.8% 0.129 131.9);
Tailwind
colors: {
  custom: {
    50: '#86a363',
    500: '#517d22',
    950: '#000000',
  },
}
SCSS
$custom: #517d22;
$custom-light: #86a363;
$custom-dark: #000000;
JSON
{
  "hex": "#517d22",
  "rgb": {
    "r": 81,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 89.011,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.5385,
    "c": 0.12931,
    "h": 131.9
  },
  "luminance": 0.16532
}

Semantic roles & 50–950 ramp

primary
#517D22
secondary
#7C4BB0
accent
#47E091
background
#F8FAF6
surface
#F0F3EB
border
#CBCDC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #517D22

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

Preview Lab → · Contrast checker → · Palette generator →

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