#518D2D#518D2D

#518D2D is a mid, vivid yellow-green. Relative luminance 0.210; OKLCH L 58.2% C 0.143 H 135.9°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#518D2D
RGBrgb(81, 141, 45)
HSLhsl(98, 52%, 36%)
HSVhsv(98, 68%, 55%)
CMYKcmyk(42.6%, 0%, 68.1%, 44.7%)
CIE-LABlab(52.94, -36.96, 43.48)
CIE-LCHlch(52.94, 57.07, 130.37°)
OKLaboklab(58.18% -0.1027 0.0996)
OKLCHoklch(58.18% 0.143 135.9)
XYZxyz(13.3915, 20.9878, 5.8275)
Luminance0.2099 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518D2D #692D8D
analogous
#818D2D #518D2D #2D8D39
triadic
#518D2D #2D518D #8D2D51
tetradic
#518D2D #2D818D #692D8D #8D392D
square
#518D2D #2D818D #692D8D #8D392D
split-complementary
#518D2D #392D8D #8D2D81
monochromatic
#1C300F #365F1E #518D2D #6CBB3C #8DCE66

Accessibility & contrast

On white

4.04
#518D2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#518D2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518D2D
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518D2D#FFFFFF#000000##000000
##518D2D1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#928220
Deuteranopia (green-blind)
#8A7D35
Tritanopia (blue-blind)
#4F8879
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #518d2d;
/* rgb */ color: rgb(81, 141, 45);
/* oklch */ color: oklch(58.2% 0.143 135.9);
Tailwind
colors: {
  custom: {
    50: '#87af6b',
    500: '#518d2d',
    950: '#000000',
  },
}
SCSS
$custom: #518d2d;
$custom-light: #87af6b;
$custom-dark: #000000;
JSON
{
  "hex": "#518d2d",
  "rgb": {
    "r": 81,
    "g": 141,
    "b": 45
  },
  "hsl": {
    "h": 97.5,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.58185,
    "c": 0.14308,
    "h": 135.9
  },
  "luminance": 0.20989
}

Semantic roles & 50–950 ramp

primary
#518D2D
secondary
#9561B5
accent
#4DDBA6
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #518D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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