#518D16#518D16

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

Color values

HEX#518D16
RGBrgb(81, 141, 22)
HSLhsl(90, 73%, 32%)
HSVhsv(90, 84%, 55%)
CMYKcmyk(42.6%, 0%, 84.4%, 44.7%)
CIE-LABlab(52.79, -38.49, 51.59)
CIE-LCHlch(52.79, 64.37, 126.72°)
OKLaboklab(58.02% -0.1084 0.1132)
OKLCHoklch(58.02% 0.157 133.8)
XYZxyz(13.0628, 20.8563, 4.0963)
Luminance0.2086 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518D16 #52168D
analogous
#8D8D16 #518D16 #168D17
triadic
#518D16 #16518D #8D1651
tetradic
#518D16 #168D8D #52168D #8D1716
square
#518D16 #168D8D #52168D #8D1716
split-complementary
#518D16 #17168D #8D168D
monochromatic
#142305 #33580E #518D16 #6FC21E #8EE13D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##518D16#FFFFFF#000000##000000
##518D161.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: #518d16;
/* rgb */ color: rgb(81, 141, 22);
/* oklch */ color: oklch(58.0% 0.157 133.8);
Tailwind
colors: {
  custom: {
    50: '#88af60',
    500: '#518d16',
    950: '#000000',
  },
}
SCSS
$custom: #518d16;
$custom-light: #88af60;
$custom-dark: #000000;
JSON
{
  "hex": "#518d16",
  "rgb": {
    "r": 81,
    "g": 141,
    "b": 22
  },
  "hsl": {
    "h": 90.252,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.5802,
    "c": 0.15674,
    "h": 133.8
  },
  "luminance": 0.20857
}

Semantic roles & 50–950 ramp

primary
#518D16
secondary
#803EC1
accent
#38F095
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #518D16

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

Preview Lab → · Contrast checker → · Palette generator →

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