#516A1F#516A1F

#516A1F is a mid, moderate yellow-green. Relative luminance 0.122; OKLCH L 48.8% C 0.105 H 126.0°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#516A1F
RGBrgb(81, 106, 31)
HSLhsl(80, 55%, 27%)
HSVhsv(80, 71%, 42%)
CMYKcmyk(23.6%, 0%, 70.8%, 58.4%)
CIE-LABlab(41.46, -21.54, 37.49)
CIE-LCHlch(41.46, 43.23, 119.88°)
OKLaboklab(48.8% -0.0617 0.085)
OKLCHoklch(48.8% 0.105 126)
XYZxyz(8.7947, 12.1562, 3.1791)
Luminance0.1216 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516A1F #381F6A
analogous
#6A5E1F #516A1F #2C6A1F
triadic
#516A1F #1F516A #6A1F51
tetradic
#516A1F #1F6A5E #381F6A #6A1F2C
square
#516A1F #1F6A5E #381F6A #6A1F2C
split-complementary
#516A1F #1F2C6A #5E1F6A
monochromatic
#121807 #2D3B11 #516A1F #75992D #99C63D

Accessibility & contrast

On white

6.12
#516A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#516A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516A1F
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516A1F#FFFFFF#000000##FFFFFF
##516A1F1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706314
Deuteranopia (green-blind)
#6C6125
Tritanopia (blue-blind)
#55655B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #516a1f;
/* rgb */ color: rgb(81, 106, 31);
/* oklch */ color: oklch(48.8% 0.105 126.0);
Tailwind
colors: {
  custom: {
    50: '#84945f',
    500: '#516a1f',
    950: '#000000',
  },
}
SCSS
$custom: #516a1f;
$custom-light: #84945f;
$custom-dark: #000000;
JSON
{
  "hex": "#516a1f",
  "rgb": {
    "r": 81,
    "g": 106,
    "b": 31
  },
  "hsl": {
    "h": 80,
    "s": 54.745,
    "l": 26.863
  },
  "oklch": {
    "l": 0.48803,
    "c": 0.10508,
    "h": 126
  },
  "luminance": 0.12156
}

Semantic roles & 50–950 ramp

primary
#516A1F
secondary
#64479E
accent
#4ADE7B
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D05
muted
#7C7E79

Preview Lab

Preview with #516A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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