#517D21#517D21

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

Color values

HEX#517D21
RGBrgb(81, 125, 33)
HSLhsl(89, 58%, 31%)
HSVhsv(89, 74%, 49%)
CMYKcmyk(35.2%, 0%, 73.6%, 51%)
CIE-LABlab(47.66, -30.71, 43.00)
CIE-LCHlch(47.66, 52.84, 125.54°)
OKLaboklab(53.84% -0.0866 0.0969)
OKLCHoklch(53.84% 0.13 131.8)
XYZxyz(11.0013, 16.5259, 4.0487)
Luminance0.1653 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517D21 #4D217D
analogous
#7D7B21 #517D21 #237D21
triadic
#517D21 #21517D #7D2151
tetradic
#517D21 #217D7B #4D217D #7D2123
square
#517D21 #217D7B #4D217D #7D2123
split-complementary
#517D21 #21237D #7B217D
monochromatic
#121C07 #324D14 #517D21 #70AD2E #8FCF49

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##517D21#FFFFFF#000000##FFFFFF
##517D211.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)
#837311
Deuteranopia (green-blind)
#7C7029
Tritanopia (blue-blind)
#52786B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #517d21;
/* rgb */ color: rgb(81, 125, 33);
/* oklch */ color: oklch(53.8% 0.130 131.8);
Tailwind
colors: {
  custom: {
    50: '#86a363',
    500: '#517d21',
    950: '#000000',
  },
}
SCSS
$custom: #517d21;
$custom-light: #86a363;
$custom-dark: #000000;
JSON
{
  "hex": "#517d21",
  "rgb": {
    "r": 81,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 88.696,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.53841,
    "c": 0.13,
    "h": 131.8
  },
  "luminance": 0.16526
}

Semantic roles & 50–950 ramp

primary
#517D21
secondary
#7B4AB0
accent
#46E191
background
#F8FAF6
surface
#F0F3EB
border
#CBCDC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #517D21

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

Preview Lab → · Contrast checker → · Palette generator →

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