#516C1F#516C1F

#516C1F is a mid, moderate yellow-green. Relative luminance 0.126; OKLCH L 49.3% C 0.108 H 126.7°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#516C1F
RGBrgb(81, 108, 31)
HSLhsl(81, 55%, 27%)
HSVhsv(81, 71%, 42%)
CMYKcmyk(25%, 0%, 71.3%, 57.6%)
CIE-LABlab(42.11, -22.56, 38.16)
CIE-LCHlch(42.11, 44.33, 120.59°)
OKLaboklab(49.33% -0.0646 0.0865)
OKLCHoklch(49.33% 0.108 126.7)
XYZxyz(9.0032, 12.5732, 3.2486)
Luminance0.1257 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516C1F #3A1F6C
analogous
#6C611F #516C1F #2A6C1F
triadic
#516C1F #1F516C #6C1F51
tetradic
#516C1F #1F6C61 #3A1F6C #6C1F2A
square
#516C1F #1F6C61 #3A1F6C #6C1F2A
split-complementary
#516C1F #1F2A6C #611F6C
monochromatic
#121807 #2D3C11 #516C1F #759C2D #97C83E

Accessibility & contrast

On white

5.98
#516C1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#516C1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516C1F
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516C1F#FFFFFF#000000##FFFFFF
##516C1F1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726414
Deuteranopia (green-blind)
#6E6325
Tritanopia (blue-blind)
#54675C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #516c1f;
/* rgb */ color: rgb(81, 108, 31);
/* oklch */ color: oklch(49.3% 0.108 126.7);
Tailwind
colors: {
  custom: {
    50: '#84965f',
    500: '#516c1f',
    950: '#000000',
  },
}
SCSS
$custom: #516c1f;
$custom-light: #84965f;
$custom-dark: #000000;
JSON
{
  "hex": "#516c1f",
  "rgb": {
    "r": 81,
    "g": 108,
    "b": 31
  },
  "hsl": {
    "h": 81.039,
    "s": 55.396,
    "l": 27.255
  },
  "oklch": {
    "l": 0.49329,
    "c": 0.1079,
    "h": 126.7
  },
  "luminance": 0.12573
}

Semantic roles & 50–950 ramp

primary
#516C1F
secondary
#6647A0
accent
#49DF7E
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0D05
muted
#7C7E79

Preview Lab

Preview with #516C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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