#518222#518222

#518222 is a mid, vivid yellow-green. Relative luminance 0.178; OKLCH L 55.2% C 0.136 H 132.9°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#518222
RGBrgb(81, 130, 34)
HSLhsl(91, 59%, 32%)
HSVhsv(91, 74%, 51%)
CMYKcmyk(37.7%, 0%, 73.8%, 49%)
CIE-LABlab(49.29, -32.94, 44.25)
CIE-LCHlch(49.29, 55.17, 126.67°)
OKLaboklab(55.18% -0.0926 0.0997)
OKLCHoklch(55.18% 0.136 132.9)
XYZxyz(11.6645, 17.8296, 4.3399)
Luminance0.1783 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518222 #532282
analogous
#818222 #518222 #228223
triadic
#518222 #225182 #822251
tetradic
#518222 #228182 #532282 #822322
square
#518222 #228182 #532282 #822322
split-complementary
#518222 #232282 #822281
monochromatic
#152109 #335115 #518222 #6FB32F #8ED14E

Accessibility & contrast

On white

4.60
#518222 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#518222 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #518222
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518222#FFFFFF#000000##FFFFFF
##5182221.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877811
Deuteranopia (green-blind)
#81742B
Tritanopia (blue-blind)
#517D6F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #518222;
/* rgb */ color: rgb(81, 130, 34);
/* oklch */ color: oklch(55.2% 0.136 132.9);
Tailwind
colors: {
  custom: {
    50: '#86a664',
    500: '#518222',
    950: '#000000',
  },
}
SCSS
$custom: #518222;
$custom-light: #86a664;
$custom-dark: #000000;
JSON
{
  "hex": "#518222",
  "rgb": {
    "r": 81,
    "g": 130,
    "b": 34
  },
  "hsl": {
    "h": 90.625,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.55175,
    "c": 0.13608,
    "h": 132.9
  },
  "luminance": 0.1783
}

Semantic roles & 50–950 ramp

primary
#518222
secondary
#814CB4
accent
#46E296
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #518222

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

Preview Lab → · Contrast checker → · Palette generator →

#518222 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva