#518716#518716

#518716 is a mid, vivid yellow-green. Relative luminance 0.191; OKLCH L 56.4% C 0.149 H 132.8°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#518716
RGBrgb(81, 135, 22)
HSLhsl(89, 72%, 31%)
HSVhsv(89, 84%, 53%)
CMYKcmyk(40%, 0%, 83.7%, 47.1%)
CIE-LABlab(50.84, -35.89, 49.84)
CIE-LCHlch(50.84, 61.41, 125.76°)
OKLaboklab(56.43% -0.1014 0.1095)
OKLCHoklch(56.43% 0.149 132.8)
XYZxyz(12.2020, 19.1346, 3.8093)
Luminance0.1913 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518716 #4C1687
analogous
#878416 #518716 #188716
triadic
#518716 #165187 #871651
tetradic
#518716 #168784 #4C1687 #871618
square
#518716 #168784 #4C1687 #871618
split-complementary
#518716 #161887 #841687
monochromatic
#121E05 #31520D #518716 #71BC1F #8FDF39

Accessibility & contrast

On white

4.35
#518716 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#518716 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518716
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518716#FFFFFF#000000##000000
##5187161.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#867823
Tritanopia (blue-blind)
#518173
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #518716;
/* rgb */ color: rgb(81, 135, 22);
/* oklch */ color: oklch(56.4% 0.149 132.8);
Tailwind
colors: {
  custom: {
    50: '#87aa5f',
    500: '#518716',
    950: '#000000',
  },
}
SCSS
$custom: #518716;
$custom-light: #87aa5f;
$custom-dark: #000000;
JSON
{
  "hex": "#518716",
  "rgb": {
    "r": 81,
    "g": 135,
    "b": 22
  },
  "hsl": {
    "h": 88.673,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.56425,
    "c": 0.14926,
    "h": 132.8
  },
  "luminance": 0.19135
}

Semantic roles & 50–950 ramp

primary
#518716
secondary
#7A3EBB
accent
#39EF90
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #518716

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

Preview Lab → · Contrast checker → · Palette generator →

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