#518D22#518D22

#518D22 is a mid, vivid yellow-green. Relative luminance 0.209; OKLCH L 58.1% C 0.151 H 134.7°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#518D22
RGBrgb(81, 141, 34)
HSLhsl(94, 61%, 34%)
HSVhsv(94, 76%, 55%)
CMYKcmyk(42.6%, 0%, 75.9%, 44.7%)
CIE-LABlab(52.86, -37.82, 47.80)
CIE-LCHlch(52.86, 60.95, 128.35°)
OKLaboklab(58.09% -0.1058 0.1071)
OKLCHoklch(58.09% 0.151 134.7)
XYZxyz(13.2067, 20.9139, 4.8540)
Luminance0.2092 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518D22 #5E228D
analogous
#878D22 #518D22 #228D29
triadic
#518D22 #22518D #8D2251
tetradic
#518D22 #22878D #5E228D #8D2922
square
#518D22 #22878D #5E228D #8D2922
split-complementary
#518D22 #29228D #8D2287
monochromatic
#182A0A #355C16 #518D22 #6DBE2E #8DD654

Accessibility & contrast

On white

4.05
#518D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#518D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518D22
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518D22#FFFFFF#000000##000000
##518D221.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#93810C
Deuteranopia (green-blind)
#8A7C2D
Tritanopia (blue-blind)
#508778
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #518d22;
/* rgb */ color: rgb(81, 141, 34);
/* oklch */ color: oklch(58.1% 0.151 134.7);
Tailwind
colors: {
  custom: {
    50: '#87af65',
    500: '#518d22',
    950: '#000000',
  },
}
SCSS
$custom: #518d22;
$custom-light: #87af65;
$custom-dark: #000000;
JSON
{
  "hex": "#518d22",
  "rgb": {
    "r": 81,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 93.645,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58092,
    "c": 0.15057,
    "h": 134.7
  },
  "luminance": 0.20915
}

Semantic roles & 50–950 ramp

primary
#518D22
secondary
#8C51B9
accent
#44E49E
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #518D22

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

Preview Lab → · Contrast checker → · Palette generator →

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