#516912#516912

#516912 is a mid, moderate yellow-green. Relative luminance 0.119; OKLCH L 48.4% C 0.112 H 124.5°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#516912
RGBrgb(81, 105, 18)
HSLhsl(77, 71%, 24%)
HSVhsv(77, 83%, 41%)
CMYKcmyk(22.9%, 0%, 82.9%, 58.8%)
CIE-LABlab(41.05, -21.84, 42.15)
CIE-LCHlch(41.05, 47.47, 117.39°)
OKLaboklab(48.44% -0.0637 0.0926)
OKLCHoklch(48.44% 0.112 124.5)
XYZxyz(8.5542, 11.8961, 2.4177)
Luminance0.1190 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516912 #2A1269
analogous
#695612 #516912 #266912
triadic
#516912 #125169 #691251
tetradic
#516912 #126956 #2A1269 #691226
square
#516912 #126956 #2A1269 #691226
split-complementary
#516912 #122669 #561269
monochromatic
#141A04 #293509 #516912 #799D1B #A2D124

Accessibility & contrast

On white

6.21
#516912 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#516912 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516912
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516912#FFFFFF#000000##FFFFFF
##5169121.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6200
Deuteranopia (green-blind)
#6C611B
Tritanopia (blue-blind)
#556359
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #516912;
/* rgb */ color: rgb(81, 105, 18);
/* oklch */ color: oklch(48.4% 0.112 124.5);
Tailwind
colors: {
  custom: {
    50: '#859459',
    500: '#516912',
    950: '#000000',
  },
}
SCSS
$custom: #516912;
$custom-light: #859459;
$custom-dark: #000000;
JSON
{
  "hex": "#516912",
  "rgb": {
    "r": 81,
    "g": 105,
    "b": 18
  },
  "hsl": {
    "h": 76.552,
    "s": 70.732,
    "l": 24.118
  },
  "oklch": {
    "l": 0.48441,
    "c": 0.1124,
    "h": 124.5
  },
  "luminance": 0.11896
}

Semantic roles & 50–950 ramp

primary
#516912
secondary
#5436A1
accent
#3AED6C
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #516912

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

Preview Lab → · Contrast checker → · Palette generator →

#516912 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva