#517221#517221

#517221 is a mid, moderate yellow-green. Relative luminance 0.139; OKLCH L 50.9% C 0.115 H 129.0°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#517221
RGBrgb(81, 114, 33)
HSLhsl(84, 55%, 29%)
HSVhsv(84, 71%, 45%)
CMYKcmyk(28.9%, 0%, 71.1%, 55.3%)
CIE-LABlab(44.08, -25.43, 39.34)
CIE-LCHlch(44.08, 46.84, 122.88°)
OKLaboklab(50.93% -0.0722 0.0892)
OKLCHoklch(50.93% 0.115 129)
XYZxyz(9.6851, 13.8935, 3.6100)
Luminance0.1389 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517221 #422172
analogous
#726B21 #517221 #297221
triadic
#517221 #215172 #722151
tetradic
#517221 #21726B #422172 #722129
square
#517221 #21726B #422172 #722129
split-complementary
#517221 #212972 #6B2172
monochromatic
#111807 #2F4313 #517221 #73A12F #93C944

Accessibility & contrast

On white

5.56
#517221 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#517221 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517221
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517221#FFFFFF#000000##FFFFFF
##5172211.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A15
Deuteranopia (green-blind)
#736728
Tritanopia (blue-blind)
#546D62
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #517221;
/* rgb */ color: rgb(81, 114, 33);
/* oklch */ color: oklch(50.9% 0.115 129.0);
Tailwind
colors: {
  custom: {
    50: '#859a61',
    500: '#517221',
    950: '#000000',
  },
}
SCSS
$custom: #517221;
$custom-light: #859a61;
$custom-dark: #000000;
JSON
{
  "hex": "#517221",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 33
  },
  "hsl": {
    "h": 84.444,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.5093,
    "c": 0.11479,
    "h": 129
  },
  "luminance": 0.13894
}

Semantic roles & 50–950 ramp

primary
#517221
secondary
#6F49A5
accent
#49DE86
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #517221

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

Preview Lab → · Contrast checker → · Palette generator →

#517221 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva