#518916#518916

#518916 is a mid, vivid yellow-green. Relative luminance 0.197; OKLCH L 57.0% C 0.152 H 133.1°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#518916
RGBrgb(81, 137, 22)
HSLhsl(89, 72%, 31%)
HSVhsv(89, 84%, 54%)
CMYKcmyk(40.9%, 0%, 83.9%, 46.3%)
CIE-LABlab(51.49, -36.76, 50.42)
CIE-LCHlch(51.49, 62.40, 126.10°)
OKLaboklab(56.96% -0.1038 0.1107)
OKLCHoklch(56.96% 0.152 133.1)
XYZxyz(12.4836, 19.6980, 3.9032)
Luminance0.1970 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518916 #4E1689
analogous
#898716 #518916 #188916
triadic
#518916 #165189 #891651
tetradic
#518916 #168987 #4E1689 #891618
square
#518916 #168987 #4E1689 #891618
split-complementary
#518916 #161889 #871689
monochromatic
#132005 #32540E #518916 #70BE1E #8FDF3A

Accessibility & contrast

On white

4.25
#518916 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#518916 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518916
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518916#FFFFFF#000000##000000
##5189161.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#877924
Tritanopia (blue-blind)
#518374
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #518916;
/* rgb */ color: rgb(81, 137, 22);
/* oklch */ color: oklch(57.0% 0.152 133.1);
Tailwind
colors: {
  custom: {
    50: '#87ac5f',
    500: '#518916',
    950: '#000000',
  },
}
SCSS
$custom: #518916;
$custom-light: #87ac5f;
$custom-dark: #000000;
JSON
{
  "hex": "#518916",
  "rgb": {
    "r": 81,
    "g": 137,
    "b": 22
  },
  "hsl": {
    "h": 89.217,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56957,
    "c": 0.15177,
    "h": 133.1
  },
  "luminance": 0.19699
}

Semantic roles & 50–950 ramp

primary
#518916
secondary
#7C3EBD
accent
#39EF92
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #518916

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

Preview Lab → · Contrast checker → · Palette generator →

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