#516217#516217

#516217 is a mid, moderate yellow-green. Relative luminance 0.105; OKLCH L 46.6% C 0.100 H 121.6°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#516217
RGBrgb(81, 98, 23)
HSLhsl(74, 62%, 24%)
HSVhsv(74, 77%, 38%)
CMYKcmyk(17.3%, 0%, 76.5%, 61.6%)
CIE-LABlab(38.81, -17.88, 38.19)
CIE-LCHlch(38.81, 42.17, 115.09°)
OKLaboklab(46.64% -0.0524 0.0852)
OKLCHoklch(46.64% 0.1 121.6)
XYZxyz(7.9158, 10.5466, 2.4291)
Luminance0.1055 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516217 #281762
analogous
#624D17 #516217 #2B6217
triadic
#516217 #175162 #621751
tetradic
#516217 #17624D #281762 #62172B
square
#516217 #17624D #281762 #62172B
split-complementary
#516217 #172B62 #4D1762
monochromatic
#141906 #28300B #516217 #7A9423 #A3C52E

Accessibility & contrast

On white

6.75
#516217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#516217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516217
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516217#FFFFFF#000000##FFFFFF
##5162171.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685C09
Deuteranopia (green-blind)
#665B1D
Tritanopia (blue-blind)
#565D53
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #516217;
/* rgb */ color: rgb(81, 98, 23);
/* oklch */ color: oklch(46.6% 0.100 121.6);
Tailwind
colors: {
  custom: {
    50: '#848e5a',
    500: '#516217',
    950: '#000000',
  },
}
SCSS
$custom: #516217;
$custom-light: #848e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#516217",
  "rgb": {
    "r": 81,
    "g": 98,
    "b": 23
  },
  "hsl": {
    "h": 73.6,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.46636,
    "c": 0.10002,
    "h": 121.6
  },
  "luminance": 0.10547
}

Semantic roles & 50–950 ramp

primary
#516217
secondary
#513C99
accent
#43E568
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C04
muted
#7C7D79

Preview Lab

Preview with #516217

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

Preview Lab → · Contrast checker → · Palette generator →

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