#516F12#516F12

#516F12 is a mid, vivid yellow-green. Relative luminance 0.132; OKLCH L 50.0% C 0.120 H 126.8°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#516F12
RGBrgb(81, 111, 18)
HSLhsl(79, 72%, 25%)
HSVhsv(79, 84%, 44%)
CMYKcmyk(27%, 0%, 83.8%, 56.5%)
CIE-LABlab(43.01, -24.87, 43.93)
CIE-LCHlch(43.01, 50.48, 119.52°)
OKLaboklab(50.03% -0.072 0.0964)
OKLCHoklch(50.03% 0.12 126.8)
XYZxyz(9.1870, 13.1617, 2.6286)
Luminance0.1316 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516F12 #30126F
analogous
#6F5E12 #516F12 #226F12
triadic
#516F12 #12516F #6F1251
tetradic
#516F12 #126F5E #30126F #6F1222
square
#516F12 #126F5E #30126F #6F1222
split-complementary
#516F12 #12226F #5E126F
monochromatic
#131A04 #2B3A09 #516F12 #77A41B #9ED823

Accessibility & contrast

On white

5.78
#516F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#516F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516F12
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516F12#FFFFFF#000000##FFFFFF
##516F121.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756700
Deuteranopia (green-blind)
#71651C
Tritanopia (blue-blind)
#55695E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #516f12;
/* rgb */ color: rgb(81, 111, 18);
/* oklch */ color: oklch(50.0% 0.120 126.8);
Tailwind
colors: {
  custom: {
    50: '#859859',
    500: '#516f12',
    950: '#000000',
  },
}
SCSS
$custom: #516f12;
$custom-light: #859859;
$custom-dark: #000000;
JSON
{
  "hex": "#516f12",
  "rgb": {
    "r": 81,
    "g": 111,
    "b": 18
  },
  "hsl": {
    "h": 79.355,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.50027,
    "c": 0.12028,
    "h": 126.8
  },
  "luminance": 0.13162
}

Semantic roles & 50–950 ramp

primary
#516F12
secondary
#5B37A6
accent
#39EF74
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #516F12

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

Preview Lab → · Contrast checker → · Palette generator →

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