#516D1F#516D1F

#516D1F is a mid, moderate yellow-green. Relative luminance 0.128; OKLCH L 49.6% C 0.109 H 127.1°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#516D1F
RGBrgb(81, 109, 31)
HSLhsl(82, 56%, 27%)
HSVhsv(82, 72%, 43%)
CMYKcmyk(25.7%, 0%, 71.6%, 57.3%)
CIE-LABlab(42.44, -23.07, 38.50)
CIE-LCHlch(42.44, 44.88, 120.93°)
OKLaboklab(49.59% -0.0659 0.0872)
OKLCHoklch(49.59% 0.109 127.1)
XYZxyz(9.1093, 12.7854, 3.2840)
Luminance0.1279 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516D1F #3B1F6D
analogous
#6D621F #516D1F #2A6D1F
triadic
#516D1F #1F516D #6D1F51
tetradic
#516D1F #1F6D62 #3B1F6D #6D1F2A
square
#516D1F #1F6D62 #3B1F6D #6D1F2A
split-complementary
#516D1F #1F2A6D #621F6D
monochromatic
#121807 #2E3D11 #516D1F #749D2D #97C83E

Accessibility & contrast

On white

5.90
#516D1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#516D1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516D1F
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516D1F#FFFFFF#000000##FFFFFF
##516D1F1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736513
Deuteranopia (green-blind)
#6F6425
Tritanopia (blue-blind)
#54685D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #516d1f;
/* rgb */ color: rgb(81, 109, 31);
/* oklch */ color: oklch(49.6% 0.109 127.1);
Tailwind
colors: {
  custom: {
    50: '#849760',
    500: '#516d1f',
    950: '#000000',
  },
}
SCSS
$custom: #516d1f;
$custom-light: #849760;
$custom-dark: #000000;
JSON
{
  "hex": "#516d1f",
  "rgb": {
    "r": 81,
    "g": 109,
    "b": 31
  },
  "hsl": {
    "h": 81.538,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.49593,
    "c": 0.10931,
    "h": 127.1
  },
  "luminance": 0.12786
}

Semantic roles & 50–950 ramp

primary
#516D1F
secondary
#6747A1
accent
#49DF7F
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0D05
muted
#7C7E79

Preview Lab

Preview with #516D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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