#518F21#518F21

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

Color values

HEX#518F21
RGBrgb(81, 143, 33)
HSLhsl(94, 63%, 35%)
HSVhsv(94, 77%, 56%)
CMYKcmyk(43.4%, 0%, 76.9%, 43.9%)
CIE-LABlab(53.50, -38.74, 48.79)
CIE-LCHlch(53.50, 62.30, 128.45°)
OKLaboklab(58.61% -0.1084 0.109)
OKLCHoklch(58.61% 0.154 134.8)
XYZxyz(13.4900, 21.5033, 4.8783)
Luminance0.2150 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518F21 #5F218F
analogous
#888F21 #518F21 #218F28
triadic
#518F21 #21518F #8F2151
tetradic
#518F21 #21888F #5F218F #8F2821
square
#518F21 #21888F #5F218F #8F2821
split-complementary
#518F21 #28218F #8F2188
monochromatic
#192C0A #355D16 #518F21 #6DC12C #8DD753

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##518F21#FFFFFF#000000##000000
##518F211.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)
#958308
Deuteranopia (green-blind)
#8C7E2C
Tritanopia (blue-blind)
#50897A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #518f21;
/* rgb */ color: rgb(81, 143, 33);
/* oklch */ color: oklch(58.6% 0.154 134.8);
Tailwind
colors: {
  custom: {
    50: '#88b065',
    500: '#518f21',
    950: '#000000',
  },
}
SCSS
$custom: #518f21;
$custom-light: #88b065;
$custom-dark: #000000;
JSON
{
  "hex": "#518f21",
  "rgb": {
    "r": 81,
    "g": 143,
    "b": 33
  },
  "hsl": {
    "h": 93.818,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.58615,
    "c": 0.15373,
    "h": 134.8
  },
  "luminance": 0.21504
}

Semantic roles & 50–950 ramp

primary
#518F21
secondary
#8D51BB
accent
#42E69E
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #518F21

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

Preview Lab → · Contrast checker → · Palette generator →

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