#517216#517216

#517216 is a mid, vivid yellow-green. Relative luminance 0.138; OKLCH L 50.8% C 0.122 H 128.0°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#517216
RGBrgb(81, 114, 22)
HSLhsl(82, 68%, 27%)
HSVhsv(82, 81%, 45%)
CMYKcmyk(28.9%, 0%, 80.7%, 55.3%)
CIE-LABlab(44.01, -26.15, 43.54)
CIE-LCHlch(44.01, 50.79, 120.99°)
OKLaboklab(50.85% -0.0751 0.0962)
OKLCHoklch(50.85% 0.122 128)
XYZxyz(9.5555, 13.8417, 2.9272)
Luminance0.1384 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517216 #371672
analogous
#726516 #517216 #237216
triadic
#517216 #165172 #721651
tetradic
#517216 #167265 #371672 #721623
square
#517216 #167265 #371672 #721623
split-complementary
#517216 #162372 #651672
monochromatic
#121A05 #2D3F0C #517216 #75A520 #99D62C

Accessibility & contrast

On white

5.57
#517216 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#517216 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517216
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517216#FFFFFF#000000##FFFFFF
##5172161.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#74671F
Tritanopia (blue-blind)
#546C61
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #517216;
/* rgb */ color: rgb(81, 114, 22);
/* oklch */ color: oklch(50.8% 0.122 128.0);
Tailwind
colors: {
  custom: {
    50: '#859a5c',
    500: '#517216',
    950: '#000000',
  },
}
SCSS
$custom: #517216;
$custom-light: #859a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#517216",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 22
  },
  "hsl": {
    "h": 81.522,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.50845,
    "c": 0.1221,
    "h": 128
  },
  "luminance": 0.13842
}

Semantic roles & 50–950 ramp

primary
#517216
secondary
#633CA8
accent
#3DEB7B
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #517216

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

Preview Lab → · Contrast checker → · Palette generator →

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