#518A17#518A17

#518A17 is a mid, vivid yellow-green. Relative luminance 0.200; OKLCH L 57.2% C 0.153 H 133.4°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#518A17
RGBrgb(81, 138, 23)
HSLhsl(90, 71%, 32%)
HSVhsv(90, 83%, 54%)
CMYKcmyk(41.3%, 0%, 83.3%, 45.9%)
CIE-LABlab(51.82, -37.15, 50.44)
CIE-LCHlch(51.82, 62.64, 126.38°)
OKLaboklab(57.23% -0.1048 0.1109)
OKLCHoklch(57.23% 0.153 133.4)
XYZxyz(12.6363, 19.9875, 4.0026)
Luminance0.1999 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518A17 #50178A
analogous
#8A8A17 #518A17 #188A17
triadic
#518A17 #17518A #8A1751
tetradic
#518A17 #178A8A #50178A #8A1718
square
#518A17 #178A8A #50178A #8A1718
split-complementary
#518A17 #17188A #8A178A
monochromatic
#132106 #32560E #518A17 #70BE20 #8EDF3D

Accessibility & contrast

On white

4.20
#518A17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#518A17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518A17
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518A17#FFFFFF#000000##000000
##518A171.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#887A25
Tritanopia (blue-blind)
#518475
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #518a17;
/* rgb */ color: rgb(81, 138, 23);
/* oklch */ color: oklch(57.2% 0.153 133.4);
Tailwind
colors: {
  custom: {
    50: '#87ac60',
    500: '#518a17',
    950: '#000000',
  },
}
SCSS
$custom: #518a17;
$custom-light: #87ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#518a17",
  "rgb": {
    "r": 81,
    "g": 138,
    "b": 23
  },
  "hsl": {
    "h": 89.739,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.57228,
    "c": 0.15258,
    "h": 133.4
  },
  "luminance": 0.19988
}

Semantic roles & 50–950 ramp

primary
#518A17
secondary
#7E3FBE
accent
#3AEE93
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #518A17

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

Preview Lab → · Contrast checker → · Palette generator →

#518A17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva