#516F18#516F18

#516F18 is a mid, moderate yellow-green. Relative luminance 0.132; OKLCH L 50.1% C 0.117 H 127.2°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#516F18
RGBrgb(81, 111, 24)
HSLhsl(81, 64%, 26%)
HSVhsv(81, 78%, 44%)
CMYKcmyk(27%, 0%, 78.4%, 56.5%)
CIE-LABlab(43.04, -24.55, 41.91)
CIE-LCHlch(43.04, 48.58, 120.36°)
OKLaboklab(50.07% -0.0706 0.0932)
OKLCHoklch(50.07% 0.117 127.2)
XYZxyz(9.2427, 13.1840, 2.9218)
Luminance0.1318 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516F18 #36186F
analogous
#6F6218 #516F18 #266F18
triadic
#516F18 #18516F #6F1851
tetradic
#516F18 #186F62 #36186F #6F1826
square
#516F18 #186F62 #36186F #6F1826
split-complementary
#516F18 #18266F #62186F
monochromatic
#121905 #2C3D0D #516F18 #76A123 #9AD22F

Accessibility & contrast

On white

5.77
#516F18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#516F18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516F18
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516F18#FFFFFF#000000##FFFFFF
##516F181.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756705
Deuteranopia (green-blind)
#716520
Tritanopia (blue-blind)
#546A5E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #516f18;
/* rgb */ color: rgb(81, 111, 24);
/* oklch */ color: oklch(50.1% 0.117 127.2);
Tailwind
colors: {
  custom: {
    50: '#85985c',
    500: '#516f18',
    950: '#000000',
  },
}
SCSS
$custom: #516f18;
$custom-light: #85985c;
$custom-dark: #000000;
JSON
{
  "hex": "#516f18",
  "rgb": {
    "r": 81,
    "g": 111,
    "b": 24
  },
  "hsl": {
    "h": 80.69,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.50065,
    "c": 0.11691,
    "h": 127.2
  },
  "luminance": 0.13184
}

Semantic roles & 50–950 ramp

primary
#516F18
secondary
#623EA5
accent
#40E77A
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #516F18

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

Preview Lab → · Contrast checker → · Palette generator →

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