#518D18#518D18

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

Color values

HEX#518D18
RGBrgb(81, 141, 24)
HSLhsl(91, 71%, 32%)
HSVhsv(91, 83%, 55%)
CMYKcmyk(42.6%, 0%, 83%, 44.7%)
CIE-LABlab(52.80, -38.39, 51.04)
CIE-LCHlch(52.80, 63.86, 126.95°)
OKLaboklab(58.03% -0.108 0.1123)
OKLCHoklch(58.03% 0.156 133.9)
XYZxyz(13.0829, 20.8643, 4.2018)
Luminance0.2087 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518D18 #54188D
analogous
#8C8D18 #518D18 #188D19
triadic
#518D18 #18518D #8D1851
tetradic
#518D18 #188C8D #54188D #8D1918
square
#518D18 #188C8D #54188D #8D1918
split-complementary
#518D18 #19188D #8D188C
monochromatic
#152406 #33590F #518D18 #6FC121 #8EDF41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##518D18#FFFFFF#000000##000000
##518D181.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)
#8B7C26
Tritanopia (blue-blind)
#508778
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #518d18;
/* rgb */ color: rgb(81, 141, 24);
/* oklch */ color: oklch(58.0% 0.156 133.9);
Tailwind
colors: {
  custom: {
    50: '#88af61',
    500: '#518d18',
    950: '#000000',
  },
}
SCSS
$custom: #518d18;
$custom-light: #88af61;
$custom-dark: #000000;
JSON
{
  "hex": "#518d18",
  "rgb": {
    "r": 81,
    "g": 141,
    "b": 24
  },
  "hsl": {
    "h": 90.769,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.5803,
    "c": 0.15585,
    "h": 133.9
  },
  "luminance": 0.20865
}

Semantic roles & 50–950 ramp

primary
#518D18
secondary
#8242BF
accent
#3AEE96
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #518D18

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

Preview Lab → · Contrast checker → · Palette generator →

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