#516B1F#516B1F

#516B1F is a mid, moderate yellow-green. Relative luminance 0.124; OKLCH L 49.1% C 0.106 H 126.4°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#516B1F
RGBrgb(81, 107, 31)
HSLhsl(81, 55%, 27%)
HSVhsv(81, 71%, 42%)
CMYKcmyk(24.3%, 0%, 71%, 58%)
CIE-LABlab(41.79, -22.05, 37.83)
CIE-LCHlch(41.79, 43.79, 120.24°)
OKLaboklab(49.07% -0.0631 0.0858)
OKLCHoklch(49.07% 0.106 126.4)
XYZxyz(8.8984, 12.3635, 3.2136)
Luminance0.1236 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516B1F #391F6B
analogous
#6B5F1F #516B1F #2B6B1F
triadic
#516B1F #1F516B #6B1F51
tetradic
#516B1F #1F6B5F #391F6B #6B1F2B
square
#516B1F #1F6B5F #391F6B #6B1F2B
split-complementary
#516B1F #1F2B6B #5F1F6B
monochromatic
#121807 #2D3C11 #516B1F #759A2D #98C73D

Accessibility & contrast

On white

6.05
#516B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#516B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516B1F
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516B1F#FFFFFF#000000##FFFFFF
##516B1F1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716414
Deuteranopia (green-blind)
#6D6225
Tritanopia (blue-blind)
#54665C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #516b1f;
/* rgb */ color: rgb(81, 107, 31);
/* oklch */ color: oklch(49.1% 0.106 126.4);
Tailwind
colors: {
  custom: {
    50: '#84955f',
    500: '#516b1f',
    950: '#000000',
  },
}
SCSS
$custom: #516b1f;
$custom-light: #84955f;
$custom-dark: #000000;
JSON
{
  "hex": "#516b1f",
  "rgb": {
    "r": 81,
    "g": 107,
    "b": 31
  },
  "hsl": {
    "h": 80.526,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.49066,
    "c": 0.10649,
    "h": 126.4
  },
  "luminance": 0.12364
}

Semantic roles & 50–950 ramp

primary
#516B1F
secondary
#65479F
accent
#49DE7C
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D05
muted
#7C7E79

Preview Lab

Preview with #516B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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