#516812#516812

#516812 is a mid, moderate yellow-green. Relative luminance 0.117; OKLCH L 48.2% C 0.111 H 124.1°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#516812
RGBrgb(81, 104, 18)
HSLhsl(76, 70%, 24%)
HSVhsv(76, 83%, 41%)
CMYKcmyk(22.1%, 0%, 82.7%, 59.2%)
CIE-LABlab(40.72, -21.32, 41.85)
CIE-LCHlch(40.72, 46.97, 117.00°)
OKLaboklab(48.18% -0.0623 0.092)
OKLCHoklch(48.18% 0.111 124.1)
XYZxyz(8.4529, 11.6936, 2.3839)
Luminance0.1169 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516812 #291268
analogous
#685412 #516812 #266812
triadic
#516812 #125168 #681251
tetradic
#516812 #126854 #291268 #681226
square
#516812 #126854 #291268 #681226
split-complementary
#516812 #122668 #541268
monochromatic
#141A05 #283409 #516812 #7A9C1B #A2D024

Accessibility & contrast

On white

6.29
#516812 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#516812 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516812
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516812#FFFFFF#000000##FFFFFF
##5168121.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6100
Deuteranopia (green-blind)
#6B601B
Tritanopia (blue-blind)
#556258
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #516812;
/* rgb */ color: rgb(81, 104, 18);
/* oklch */ color: oklch(48.2% 0.111 124.1);
Tailwind
colors: {
  custom: {
    50: '#859358',
    500: '#516812',
    950: '#000000',
  },
}
SCSS
$custom: #516812;
$custom-light: #859358;
$custom-dark: #000000;
JSON
{
  "hex": "#516812",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 18
  },
  "hsl": {
    "h": 76.047,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.48177,
    "c": 0.11109,
    "h": 124.1
  },
  "luminance": 0.11694
}

Semantic roles & 50–950 ramp

primary
#516812
secondary
#5236A0
accent
#3BED6A
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #516812

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

Preview Lab → · Contrast checker → · Palette generator →

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