#518E20#518E20

#518E20 is a mid, vivid yellow-green. Relative luminance 0.212; OKLCH L 58.3% C 0.153 H 134.6°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#518E20
RGBrgb(81, 142, 32)
HSLhsl(93, 63%, 34%)
HSVhsv(93, 77%, 56%)
CMYKcmyk(43%, 0%, 77.5%, 44.3%)
CIE-LABlab(53.17, -38.38, 48.82)
CIE-LCHlch(53.17, 62.10, 128.17°)
OKLaboklab(58.34% -0.1075 0.1089)
OKLCHoklch(58.34% 0.153 134.6)
XYZxyz(13.3268, 21.1989, 4.7558)
Luminance0.2120 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518E20 #5D208E
analogous
#888E20 #518E20 #208E26
triadic
#518E20 #20518E #8E2051
tetradic
#518E20 #20888E #5D208E #8E2620
square
#518E20 #20888E #5D208E #8E2620
split-complementary
#518E20 #26208E #8E2088
monochromatic
#182A09 #355C15 #518E20 #6DC02B #8DD851

Accessibility & contrast

On white

4.01
#518E20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#518E20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518E20
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518E20#FFFFFF#000000##000000
##518E201.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#948206
Deuteranopia (green-blind)
#8B7D2B
Tritanopia (blue-blind)
#508879
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #518e20;
/* rgb */ color: rgb(81, 142, 32);
/* oklch */ color: oklch(58.3% 0.153 134.6);
Tailwind
colors: {
  custom: {
    50: '#87af64',
    500: '#518e20',
    950: '#000000',
  },
}
SCSS
$custom: #518e20;
$custom-light: #87af64;
$custom-dark: #000000;
JSON
{
  "hex": "#518e20",
  "rgb": {
    "r": 81,
    "g": 142,
    "b": 32
  },
  "hsl": {
    "h": 93.273,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58343,
    "c": 0.15302,
    "h": 134.6
  },
  "luminance": 0.212
}

Semantic roles & 50–950 ramp

primary
#518E20
secondary
#8B4FBB
accent
#42E69D
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #518E20

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

Preview Lab → · Contrast checker → · Palette generator →

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