#518D15#518D15

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

Color values

HEX#518D15
RGBrgb(81, 141, 21)
HSLhsl(90, 74%, 32%)
HSVhsv(90, 85%, 55%)
CMYKcmyk(42.6%, 0%, 85.1%, 44.7%)
CIE-LABlab(52.79, -38.53, 51.86)
CIE-LCHlch(52.79, 64.60, 126.61°)
OKLaboklab(58.02% -0.1086 0.1136)
OKLCHoklch(58.02% 0.157 133.7)
XYZxyz(13.0534, 20.8525, 4.0465)
Luminance0.2085 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518D15 #51158D
analogous
#8D8D15 #518D15 #158D15
triadic
#518D15 #15518D #8D1551
tetradic
#518D15 #158D8D #51158D #8D1515
square
#518D15 #158D8D #51158D #8D1515
split-complementary
#518D15 #15158D #8D158D
monochromatic
#142205 #32580D #518D15 #70C21D #8EE23B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##518D15#FFFFFF#000000##000000
##518D151.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)
#8B7C24
Tritanopia (blue-blind)
#518778
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #518d15;
/* rgb */ color: rgb(81, 141, 21);
/* oklch */ color: oklch(58.0% 0.157 133.7);
Tailwind
colors: {
  custom: {
    50: '#88af5f',
    500: '#518d15',
    950: '#000000',
  },
}
SCSS
$custom: #518d15;
$custom-light: #88af5f;
$custom-dark: #000000;
JSON
{
  "hex": "#518d15",
  "rgb": {
    "r": 81,
    "g": 141,
    "b": 21
  },
  "hsl": {
    "h": 90,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.58016,
    "c": 0.15716,
    "h": 133.7
  },
  "luminance": 0.20853
}

Semantic roles & 50–950 ramp

primary
#518D15
secondary
#7F3DC1
accent
#37F194
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #518D15

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

Preview Lab → · Contrast checker → · Palette generator →

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