#517215#517215

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

Color values

HEX#517215
RGBrgb(81, 114, 21)
HSLhsl(81, 69%, 26%)
HSVhsv(81, 82%, 45%)
CMYKcmyk(28.9%, 0%, 81.6%, 55.3%)
CIE-LABlab(44.00, -26.20, 43.88)
CIE-LCHlch(44.00, 51.10, 120.85°)
OKLaboklab(50.84% -0.0754 0.0968)
OKLCHoklch(50.84% 0.123 127.9)
XYZxyz(9.5460, 13.8379, 2.8774)
Luminance0.1384 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517215 #361572
analogous
#726515 #517215 #237215
triadic
#517215 #155172 #721551
tetradic
#517215 #157265 #361572 #721523
square
#517215 #157265 #361572 #721523
split-complementary
#517215 #152372 #651572
monochromatic
#121A05 #2C3E0B #517215 #76A61F #9AD82A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##517215#FFFFFF#000000##FFFFFF
##5172151.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: #517215;
/* rgb */ color: rgb(81, 114, 21);
/* oklch */ color: oklch(50.8% 0.123 127.9);
Tailwind
colors: {
  custom: {
    50: '#859a5b',
    500: '#517215',
    950: '#000000',
  },
}
SCSS
$custom: #517215;
$custom-light: #859a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#517215",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 21
  },
  "hsl": {
    "h": 81.29,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.50839,
    "c": 0.12265,
    "h": 127.9
  },
  "luminance": 0.13838
}

Semantic roles & 50–950 ramp

primary
#517215
secondary
#623BA8
accent
#3CEC7A
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #517215

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

Preview Lab → · Contrast checker → · Palette generator →

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