#517217#517217

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

Color values

HEX#517217
RGBrgb(81, 114, 23)
HSLhsl(82, 66%, 27%)
HSVhsv(82, 80%, 45%)
CMYKcmyk(28.9%, 0%, 79.8%, 55.3%)
CIE-LABlab(44.01, -26.10, 43.20)
CIE-LCHlch(44.01, 50.47, 121.13°)
OKLaboklab(50.85% -0.0749 0.0957)
OKLCHoklch(50.85% 0.122 128.1)
XYZxyz(9.5653, 13.8456, 2.9790)
Luminance0.1385 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517217 #381772
analogous
#726617 #517217 #247217
triadic
#517217 #175172 #721751
tetradic
#517217 #177266 #381772 #721724
square
#517217 #177266 #381772 #721724
split-complementary
#517217 #172472 #661772
monochromatic
#121905 #2D3F0D #517217 #75A521 #99D52E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##517217#FFFFFF#000000##FFFFFF
##5172171.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)
#786902
Deuteranopia (green-blind)
#746720
Tritanopia (blue-blind)
#546D61
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #517217;
/* rgb */ color: rgb(81, 114, 23);
/* oklch */ color: oklch(50.9% 0.122 128.1);
Tailwind
colors: {
  custom: {
    50: '#859a5c',
    500: '#517217',
    950: '#000000',
  },
}
SCSS
$custom: #517217;
$custom-light: #859a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#517217",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 81.758,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.50852,
    "c": 0.12153,
    "h": 128.1
  },
  "luminance": 0.13846
}

Semantic roles & 50–950 ramp

primary
#517217
secondary
#643DA8
accent
#3EE97C
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #517217

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

Preview Lab → · Contrast checker → · Palette generator →

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