#518F20#518F20

#518F20 is a mid, vivid yellow-green. Relative luminance 0.215; OKLCH L 58.6% C 0.154 H 134.7°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#518F20
RGBrgb(81, 143, 32)
HSLhsl(94, 63%, 34%)
HSVhsv(94, 78%, 56%)
CMYKcmyk(43.4%, 0%, 77.6%, 43.9%)
CIE-LABlab(53.49, -38.80, 49.13)
CIE-LCHlch(53.49, 62.61, 128.30°)
OKLaboklab(58.61% -0.1086 0.1096)
OKLCHoklch(58.61% 0.154 134.7)
XYZxyz(13.4762, 21.4978, 4.8056)
Luminance0.2150 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518F20 #5E208F
analogous
#898F20 #518F20 #208F27
triadic
#518F20 #20518F #8F2051
tetradic
#518F20 #20898F #5E208F #8F2720
square
#518F20 #20898F #5E208F #8F2720
split-complementary
#518F20 #27208F #8F2089
monochromatic
#182B0A #355D15 #518F20 #6DC12B #8DD851

Accessibility & contrast

On white

3.96
#518F20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#518F20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518F20
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518F20#FFFFFF#000000##000000
##518F201.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#958305
Deuteranopia (green-blind)
#8C7E2C
Tritanopia (blue-blind)
#50897A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #518f20;
/* rgb */ color: rgb(81, 143, 32);
/* oklch */ color: oklch(58.6% 0.154 134.7);
Tailwind
colors: {
  custom: {
    50: '#88b064',
    500: '#518f20',
    950: '#000000',
  },
}
SCSS
$custom: #518f20;
$custom-light: #88b064;
$custom-dark: #000000;
JSON
{
  "hex": "#518f20",
  "rgb": {
    "r": 81,
    "g": 143,
    "b": 32
  },
  "hsl": {
    "h": 93.514,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58609,
    "c": 0.1543,
    "h": 134.7
  },
  "luminance": 0.21499
}

Semantic roles & 50–950 ramp

primary
#518F20
secondary
#8C4FBB
accent
#41E69E
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #518F20

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

Preview Lab → · Contrast checker → · Palette generator →

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