#518D2B#518D2B

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

Color values

HEX#518D2B
RGBrgb(81, 141, 43)
HSLhsl(97, 53%, 36%)
HSVhsv(97, 70%, 55%)
CMYKcmyk(42.6%, 0%, 69.5%, 44.7%)
CIE-LABlab(52.92, -37.14, 44.32)
CIE-LCHlch(52.92, 57.82, 129.96°)
OKLaboklab(58.17% -0.1033 0.1011)
OKLCHoklch(58.17% 0.145 135.6)
XYZxyz(13.3539, 20.9728, 5.6295)
Luminance0.2097 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518D2B #672B8D
analogous
#828D2B #518D2B #2B8D36
triadic
#518D2B #2B518D #8D2B51
tetradic
#518D2B #2B828D #672B8D #8D362B
square
#518D2B #2B828D #672B8D #8D362B
split-complementary
#518D2B #362B8D #8D2B82
monochromatic
#1B2F0E #365E1D #518D2B #6CBC39 #8DCF63

Accessibility & contrast

On white

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

On black

5.19
#518D2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518D2B
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518D2B#FFFFFF#000000##000000
##518D2B1.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#92811D
Deuteranopia (green-blind)
#8A7D34
Tritanopia (blue-blind)
#4F8879
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #518d2b;
/* rgb */ color: rgb(81, 141, 43);
/* oklch */ color: oklch(58.2% 0.145 135.6);
Tailwind
colors: {
  custom: {
    50: '#87af6a',
    500: '#518d2b',
    950: '#000000',
  },
}
SCSS
$custom: #518d2b;
$custom-light: #87af6a;
$custom-dark: #000000;
JSON
{
  "hex": "#518d2b",
  "rgb": {
    "r": 81,
    "g": 141,
    "b": 43
  },
  "hsl": {
    "h": 96.735,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.58166,
    "c": 0.14456,
    "h": 135.6
  },
  "luminance": 0.20974
}

Semantic roles & 50–950 ramp

primary
#518D2B
secondary
#945EB6
accent
#4BDDA4
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #518D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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