#518D17#518D17

#518D17 is a mid, vivid yellow-green. Relative luminance 0.209; OKLCH L 58.0% C 0.156 H 133.8°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#518D17
RGBrgb(81, 141, 23)
HSLhsl(91, 72%, 32%)
HSVhsv(91, 84%, 55%)
CMYKcmyk(42.6%, 0%, 83.7%, 44.7%)
CIE-LABlab(52.80, -38.44, 51.32)
CIE-LCHlch(52.80, 64.12, 126.84°)
OKLaboklab(58.03% -0.1082 0.1128)
OKLCHoklch(58.03% 0.156 133.8)
XYZxyz(13.0726, 20.8603, 4.1481)
Luminance0.2086 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518D17 #53178D
analogous
#8C8D17 #518D17 #178D18
triadic
#518D17 #17518D #8D1751
tetradic
#518D17 #178C8D #53178D #8D1817
square
#518D17 #178C8D #53178D #8D1817
split-complementary
#518D17 #18178D #8D178C
monochromatic
#152406 #33580E #518D17 #6FC220 #8EE03F

Accessibility & contrast

On white

4.06
#518D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#518D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518D17
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518D17#FFFFFF#000000##000000
##518D171.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#8B7C25
Tritanopia (blue-blind)
#518778
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #518d17;
/* rgb */ color: rgb(81, 141, 23);
/* oklch */ color: oklch(58.0% 0.156 133.8);
Tailwind
colors: {
  custom: {
    50: '#88af60',
    500: '#518d17',
    950: '#000000',
  },
}
SCSS
$custom: #518d17;
$custom-light: #88af60;
$custom-dark: #000000;
JSON
{
  "hex": "#518d17",
  "rgb": {
    "r": 81,
    "g": 141,
    "b": 23
  },
  "hsl": {
    "h": 90.508,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.58025,
    "c": 0.1563,
    "h": 133.8
  },
  "luminance": 0.20861
}

Semantic roles & 50–950 ramp

primary
#518D17
secondary
#8140C0
accent
#39EF95
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #518D17

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

Preview Lab → · Contrast checker → · Palette generator →

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