#516D18#516D18

#516D18 is a mid, moderate yellow-green. Relative luminance 0.128; OKLCH L 49.5% C 0.114 H 126.5°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#516D18
RGBrgb(81, 109, 24)
HSLhsl(80, 64%, 26%)
HSVhsv(80, 78%, 43%)
CMYKcmyk(25.7%, 0%, 78%, 57.3%)
CIE-LABlab(42.39, -23.55, 41.29)
CIE-LCHlch(42.39, 47.53, 119.70°)
OKLaboklab(49.54% -0.0679 0.0919)
OKLCHoklch(49.54% 0.114 126.5)
XYZxyz(9.0269, 12.7524, 2.8499)
Luminance0.1275 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516D18 #34186D
analogous
#6D5E18 #516D18 #266D18
triadic
#516D18 #18516D #6D1851
tetradic
#516D18 #186D5E #34186D #6D1826
square
#516D18 #186D5E #34186D #6D1826
split-complementary
#516D18 #18266D #5E186D
monochromatic
#131906 #2C3B0D #516D18 #769F23 #9BD12E

Accessibility & contrast

On white

5.91
#516D18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#516D18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516D18
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516D18#FFFFFF#000000##FFFFFF
##516D181.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736506
Deuteranopia (green-blind)
#6F6420
Tritanopia (blue-blind)
#55685D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #516d18;
/* rgb */ color: rgb(81, 109, 24);
/* oklch */ color: oklch(49.5% 0.114 126.5);
Tailwind
colors: {
  custom: {
    50: '#85975c',
    500: '#516d18',
    950: '#000000',
  },
}
SCSS
$custom: #516d18;
$custom-light: #85975c;
$custom-dark: #000000;
JSON
{
  "hex": "#516d18",
  "rgb": {
    "r": 81,
    "g": 109,
    "b": 24
  },
  "hsl": {
    "h": 79.765,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.49536,
    "c": 0.11422,
    "h": 126.5
  },
  "luminance": 0.12753
}

Semantic roles & 50–950 ramp

primary
#516D18
secondary
#5F3EA3
accent
#41E778
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #516D18

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

Preview Lab → · Contrast checker → · Palette generator →

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