#516F17#516F17

#516F17 is a mid, moderate yellow-green. Relative luminance 0.132; OKLCH L 50.1% C 0.118 H 127.1°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#516F17
RGBrgb(81, 111, 23)
HSLhsl(80, 66%, 26%)
HSVhsv(80, 79%, 44%)
CMYKcmyk(27%, 0%, 79.3%, 56.5%)
CIE-LABlab(43.03, -24.61, 42.27)
CIE-LCHlch(43.03, 48.92, 120.21°)
OKLaboklab(50.06% -0.0709 0.0937)
OKLCHoklch(50.06% 0.118 127.1)
XYZxyz(9.2325, 13.1799, 2.8680)
Luminance0.1318 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516F17 #35176F
analogous
#6F6117 #516F17 #256F17
triadic
#516F17 #17516F #6F1751
tetradic
#516F17 #176F61 #35176F #6F1725
square
#516F17 #176F61 #35176F #6F1725
split-complementary
#516F17 #17256F #61176F
monochromatic
#121905 #2C3C0C #516F17 #76A222 #9BD32D

Accessibility & contrast

On white

5.78
#516F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#516F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516F17
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516F17#FFFFFF#000000##FFFFFF
##516F171.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756703
Deuteranopia (green-blind)
#716520
Tritanopia (blue-blind)
#546A5E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #516f17;
/* rgb */ color: rgb(81, 111, 23);
/* oklch */ color: oklch(50.1% 0.118 127.1);
Tailwind
colors: {
  custom: {
    50: '#85985c',
    500: '#516f17',
    950: '#000000',
  },
}
SCSS
$custom: #516f17;
$custom-light: #85985c;
$custom-dark: #000000;
JSON
{
  "hex": "#516f17",
  "rgb": {
    "r": 81,
    "g": 111,
    "b": 23
  },
  "hsl": {
    "h": 80.455,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.50058,
    "c": 0.11752,
    "h": 127.1
  },
  "luminance": 0.1318
}

Semantic roles & 50–950 ramp

primary
#516F17
secondary
#603DA5
accent
#3FE979
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #516F17

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

Preview Lab → · Contrast checker → · Palette generator →

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