#518A22#518A22

#518A22 is a mid, vivid yellow-green. Relative luminance 0.200; OKLCH L 57.3% C 0.147 H 134.2°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#518A22
RGBrgb(81, 138, 34)
HSLhsl(93, 60%, 34%)
HSVhsv(93, 75%, 54%)
CMYKcmyk(41.3%, 0%, 75.4%, 45.9%)
CIE-LABlab(51.88, -36.51, 46.84)
CIE-LCHlch(51.88, 59.39, 127.94°)
OKLaboklab(57.3% -0.1023 0.1051)
OKLCHoklch(57.3% 0.147 134.2)
XYZxyz(12.7703, 20.0411, 4.7085)
Luminance0.2004 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518A22 #5B228A
analogous
#858A22 #518A22 #228A27
triadic
#518A22 #22518A #8A2251
tetradic
#518A22 #22858A #5B228A #8A2722
square
#518A22 #22858A #5B228A #8A2722
split-complementary
#518A22 #27228A #8A2285
monochromatic
#17280A #345916 #518A22 #6EBB2E #8DD452

Accessibility & contrast

On white

4.19
#518A22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#518A22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518A22
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518A22#FFFFFF#000000##000000
##518A221.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F0E
Deuteranopia (green-blind)
#887A2C
Tritanopia (blue-blind)
#508476
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #518a22;
/* rgb */ color: rgb(81, 138, 34);
/* oklch */ color: oklch(57.3% 0.147 134.2);
Tailwind
colors: {
  custom: {
    50: '#87ac65',
    500: '#518a22',
    950: '#000000',
  },
}
SCSS
$custom: #518a22;
$custom-light: #87ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#518a22",
  "rgb": {
    "r": 81,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 92.885,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57297,
    "c": 0.14667,
    "h": 134.2
  },
  "luminance": 0.20042
}

Semantic roles & 50–950 ramp

primary
#518A22
secondary
#8950B8
accent
#44E49C
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #518A22

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

Preview Lab → · Contrast checker → · Palette generator →

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