#518917#518917

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

Color values

HEX#518917
RGBrgb(81, 137, 23)
HSLhsl(89, 71%, 31%)
HSVhsv(89, 83%, 54%)
CMYKcmyk(40.9%, 0%, 83.2%, 46.3%)
CIE-LABlab(51.50, -36.72, 50.14)
CIE-LCHlch(51.50, 62.15, 126.21°)
OKLaboklab(56.96% -0.1036 0.1103)
OKLCHoklch(56.96% 0.151 133.2)
XYZxyz(12.4935, 19.7019, 3.9550)
Luminance0.1970 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518917 #4F1789
analogous
#898817 #518917 #188917
triadic
#518917 #175189 #891751
tetradic
#518917 #178988 #4F1789 #891718
square
#518917 #178988 #4F1789 #891718
split-complementary
#518917 #171889 #881789
monochromatic
#132005 #32550E #518917 #70BD20 #8FDE3C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##518917#FFFFFF#000000##000000
##5189171.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)
#877925
Tritanopia (blue-blind)
#518374
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #518917;
/* rgb */ color: rgb(81, 137, 23);
/* oklch */ color: oklch(57.0% 0.151 133.2);
Tailwind
colors: {
  custom: {
    50: '#87ac60',
    500: '#518917',
    950: '#000000',
  },
}
SCSS
$custom: #518917;
$custom-light: #87ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#518917",
  "rgb": {
    "r": 81,
    "g": 137,
    "b": 23
  },
  "hsl": {
    "h": 89.474,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56962,
    "c": 0.15132,
    "h": 133.2
  },
  "luminance": 0.19703
}

Semantic roles & 50–950 ramp

primary
#518917
secondary
#7D3FBD
accent
#3AEE92
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #518917

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

Preview Lab → · Contrast checker → · Palette generator →

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