#518221#518221

#518221 is a mid, vivid yellow-green. Relative luminance 0.178; OKLCH L 55.2% C 0.137 H 132.8°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#518221
RGBrgb(81, 130, 33)
HSLhsl(90, 60%, 32%)
HSVhsv(90, 75%, 51%)
CMYKcmyk(37.7%, 0%, 74.6%, 49%)
CIE-LABlab(49.28, -33.02, 44.63)
CIE-LCHlch(49.28, 55.52, 126.49°)
OKLaboklab(55.17% -0.0929 0.1003)
OKLCHoklch(55.17% 0.137 132.8)
XYZxyz(11.6503, 17.8239, 4.2651)
Luminance0.1782 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518221 #522182
analogous
#828221 #518221 #218221
triadic
#518221 #215182 #822151
tetradic
#518221 #218282 #522182 #822121
square
#518221 #218282 #522182 #822121
split-complementary
#518221 #212182 #822182
monochromatic
#142008 #335115 #518221 #6FB32D #8ED24C

Accessibility & contrast

On white

4.60
#518221 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#518221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #518221
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518221#FFFFFF#000000##FFFFFF
##5182211.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#88780F
Deuteranopia (green-blind)
#81742A
Tritanopia (blue-blind)
#527D6F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #518221;
/* rgb */ color: rgb(81, 130, 33);
/* oklch */ color: oklch(55.2% 0.137 132.8);
Tailwind
colors: {
  custom: {
    50: '#86a663',
    500: '#518221',
    950: '#000000',
  },
}
SCSS
$custom: #518221;
$custom-light: #86a663;
$custom-dark: #000000;
JSON
{
  "hex": "#518221",
  "rgb": {
    "r": 81,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 90.309,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.55167,
    "c": 0.13674,
    "h": 132.8
  },
  "luminance": 0.17824
}

Semantic roles & 50–950 ramp

primary
#518221
secondary
#804AB4
accent
#45E395
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #518221

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

Preview Lab → · Contrast checker → · Palette generator →

#518221 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva