#516D40#516D40

#516D40 is a mid, moderate yellow-green. Relative luminance 0.131; OKLCH L 50.1% C 0.076 H 134.4°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#516D40
RGBrgb(81, 109, 64)
HSLhsl(97, 26%, 34%)
HSVhsv(97, 41%, 43%)
CMYKcmyk(25.7%, 0%, 41.3%, 57.3%)
CIE-LABlab(42.85, -19.30, 21.90)
CIE-LCHlch(42.85, 29.19, 131.38°)
OKLaboklab(50.06% -0.0528 0.054)
OKLCHoklch(50.06% 0.076 134.4)
XYZxyz(9.7872, 13.0565, 6.8540)
Luminance0.1306 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516D40 #5C406D
analogous
#686D40 #516D40 #406D46
triadic
#516D40 #40516D #6D4051
tetradic
#516D40 #40686D #5C406D #6D4640
square
#516D40 #40686D #5C406D #6D4640
split-complementary
#516D40 #46406D #6D4068
monochromatic
#182013 #344629 #516D40 #6E9457 #8DB078

Accessibility & contrast

On white

5.81
#516D40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#516D40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516D40
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516D40#FFFFFF#000000##FFFFFF
##516D401.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#70673D
Deuteranopia (green-blind)
#6C6442
Tritanopia (blue-blind)
#516A62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #516d40;
/* rgb */ color: rgb(81, 109, 64);
/* oklch */ color: oklch(50.1% 0.076 134.4);
Tailwind
colors: {
  custom: {
    50: '#839775',
    500: '#516d40',
    950: '#000000',
  },
}
SCSS
$custom: #516d40;
$custom-light: #839775;
$custom-dark: #000000;
JSON
{
  "hex": "#516d40",
  "rgb": {
    "r": 81,
    "g": 109,
    "b": 64
  },
  "hsl": {
    "h": 97.333,
    "s": 26.012,
    "l": 33.922
  },
  "oklch": {
    "l": 0.50057,
    "c": 0.07553,
    "h": 134.4
  },
  "luminance": 0.13057
}

Semantic roles & 50–950 ramp

primary
#516D40
secondary
#8A6E9B
accent
#65C29F
background
#F8F9F7
surface
#EFF2ED
border
#CACCC8
text
#0A0D08
muted
#7C7E7B

Preview Lab

Preview with #516D40

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

Preview Lab → · Contrast checker → · Palette generator →

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