#516D17#516D17

#516D17 is a mid, moderate yellow-green. Relative luminance 0.127; OKLCH L 49.5% C 0.115 H 126.4°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#516D17
RGBrgb(81, 109, 23)
HSLhsl(80, 65%, 26%)
HSVhsv(80, 79%, 43%)
CMYKcmyk(25.7%, 0%, 78.9%, 57.3%)
CIE-LABlab(42.38, -23.61, 41.65)
CIE-LCHlch(42.38, 47.88, 119.54°)
OKLaboklab(49.53% -0.0681 0.0924)
OKLCHoklch(49.53% 0.115 126.4)
XYZxyz(9.0167, 12.7483, 2.7961)
Luminance0.1275 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516D17 #33176D
analogous
#6D5E17 #516D17 #266D17
triadic
#516D17 #17516D #6D1751
tetradic
#516D17 #176D5E #33176D #6D1726
square
#516D17 #176D5E #33176D #6D1726
split-complementary
#516D17 #17266D #5E176D
monochromatic
#131905 #2B3A0C #516D17 #77A022 #9CD22C

Accessibility & contrast

On white

5.92
#516D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#516D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516D17
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516D17#FFFFFF#000000##FFFFFF
##516D171.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736504
Deuteranopia (green-blind)
#6F641F
Tritanopia (blue-blind)
#55685D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #516d17;
/* rgb */ color: rgb(81, 109, 23);
/* oklch */ color: oklch(49.5% 0.115 126.4);
Tailwind
colors: {
  custom: {
    50: '#85975b',
    500: '#516d17',
    950: '#000000',
  },
}
SCSS
$custom: #516d17;
$custom-light: #85975b;
$custom-dark: #000000;
JSON
{
  "hex": "#516d17",
  "rgb": {
    "r": 81,
    "g": 109,
    "b": 23
  },
  "hsl": {
    "h": 79.535,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.49529,
    "c": 0.11484,
    "h": 126.4
  },
  "luminance": 0.12748
}

Semantic roles & 50–950 ramp

primary
#516D17
secondary
#5E3DA3
accent
#40E877
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #516D17

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

Preview Lab → · Contrast checker → · Palette generator →

#516D17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva