#516212#516212

#516212 is a mid, moderate yellow-green. Relative luminance 0.105; OKLCH L 46.6% C 0.103 H 121.3°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#516212
RGBrgb(81, 98, 18)
HSLhsl(73, 69%, 23%)
HSVhsv(73, 82%, 38%)
CMYKcmyk(17.3%, 0%, 81.6%, 61.6%)
CIE-LABlab(38.77, -18.17, 40.05)
CIE-LCHlch(38.77, 43.98, 114.40°)
OKLaboklab(46.6% -0.0537 0.0882)
OKLCHoklch(46.6% 0.103 121.3)
XYZxyz(7.8703, 10.5284, 2.1897)
Luminance0.1053 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516212 #231262
analogous
#624B12 #516212 #296212
triadic
#516212 #125162 #621251
tetradic
#516212 #12624B #231262 #621229
square
#516212 #12624B #231262 #621229
split-complementary
#516212 #122962 #4B1262
monochromatic
#151A05 #262E09 #516212 #7C961B #A6C925

Accessibility & contrast

On white

6.76
#516212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#516212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516212
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516212#FFFFFF#000000##FFFFFF
##5162121.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695C01
Deuteranopia (green-blind)
#665B1A
Tritanopia (blue-blind)
#565C53
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #516212;
/* rgb */ color: rgb(81, 98, 18);
/* oklch */ color: oklch(46.6% 0.103 121.3);
Tailwind
colors: {
  custom: {
    50: '#858e57',
    500: '#516212',
    950: '#000000',
  },
}
SCSS
$custom: #516212;
$custom-light: #858e57;
$custom-dark: #000000;
JSON
{
  "hex": "#516212",
  "rgb": {
    "r": 81,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 72.75,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.46601,
    "c": 0.10321,
    "h": 121.3
  },
  "luminance": 0.10528
}

Semantic roles & 50–950 ramp

primary
#516212
secondary
#4B369A
accent
#3CEC61
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C03
muted
#7C7D78

Preview Lab

Preview with #516212

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

Preview Lab → · Contrast checker → · Palette generator →

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