#518817#518817

#518817 is a mid, vivid yellow-green. Relative luminance 0.194; OKLCH L 56.7% C 0.150 H 133.0°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#518817
RGBrgb(81, 136, 23)
HSLhsl(89, 71%, 31%)
HSVhsv(89, 83%, 53%)
CMYKcmyk(40.4%, 0%, 83.1%, 46.7%)
CIE-LABlab(51.17, -36.28, 49.85)
CIE-LCHlch(51.17, 61.65, 126.05°)
OKLaboklab(56.7% -0.1024 0.1097)
OKLCHoklch(56.7% 0.15 133)
XYZxyz(12.3520, 19.4189, 3.9078)
Luminance0.1942 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518817 #4E1788
analogous
#888617 #518817 #188817
triadic
#518817 #175188 #881751
tetradic
#518817 #178886 #4E1788 #881718
square
#518817 #178886 #4E1788 #881718
split-complementary
#518817 #171888 #861788
monochromatic
#131F05 #32540E #518817 #70BC20 #8FDE3B

Accessibility & contrast

On white

4.30
#518817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#518817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518817
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518817#FFFFFF#000000##000000
##5188171.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#867824
Tritanopia (blue-blind)
#518274
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #518817;
/* rgb */ color: rgb(81, 136, 23);
/* oklch */ color: oklch(56.7% 0.150 133.0);
Tailwind
colors: {
  custom: {
    50: '#87ab5f',
    500: '#518817',
    950: '#000000',
  },
}
SCSS
$custom: #518817;
$custom-light: #87ab5f;
$custom-dark: #000000;
JSON
{
  "hex": "#518817",
  "rgb": {
    "r": 81,
    "g": 136,
    "b": 23
  },
  "hsl": {
    "h": 89.204,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56696,
    "c": 0.15006,
    "h": 133
  },
  "luminance": 0.1942
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #518817

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

Preview Lab → · Contrast checker → · Palette generator →

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