#516F1F#516F1F

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

Color values

HEX#516F1F
RGBrgb(81, 111, 31)
HSLhsl(83, 56%, 28%)
HSVhsv(83, 72%, 44%)
CMYKcmyk(27%, 0%, 72.1%, 56.5%)
CIE-LABlab(43.09, -24.08, 39.17)
CIE-LCHlch(43.09, 45.98, 121.58°)
OKLaboklab(50.12% -0.0687 0.0886)
OKLCHoklch(50.12% 0.112 127.8)
XYZxyz(9.3251, 13.2169, 3.3559)
Luminance0.1322 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516F1F #3D1F6F
analogous
#6F651F #516F1F #296F1F
triadic
#516F1F #1F516F #6F1F51
tetradic
#516F1F #1F6F65 #3D1F6F #6F1F29
square
#516F1F #1F6F65 #3D1F6F #6F1F29
split-complementary
#516F1F #1F296F #651F6F
monochromatic
#111807 #2E3F12 #516F1F #749F2C #95C93F

Accessibility & contrast

On white

5.76
#516F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #516F1F
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516F1F#FFFFFF#000000##FFFFFF
##516F1F1.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756713
Deuteranopia (green-blind)
#716526
Tritanopia (blue-blind)
#546A5F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #516f1f;
/* rgb */ color: rgb(81, 111, 31);
/* oklch */ color: oklch(50.1% 0.112 127.8);
Tailwind
colors: {
  custom: {
    50: '#859860',
    500: '#516f1f',
    950: '#000000',
  },
}
SCSS
$custom: #516f1f;
$custom-light: #859860;
$custom-dark: #000000;
JSON
{
  "hex": "#516f1f",
  "rgb": {
    "r": 81,
    "g": 111,
    "b": 31
  },
  "hsl": {
    "h": 82.5,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.5012,
    "c": 0.11211,
    "h": 127.8
  },
  "luminance": 0.13217
}

Semantic roles & 50–950 ramp

primary
#516F1F
secondary
#6947A3
accent
#48E081
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0D05
muted
#7C7E79

Preview Lab

Preview with #516F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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