#518022#518022

#518022 is a mid, vivid yellow-green. Relative luminance 0.173; OKLCH L 54.6% C 0.133 H 132.5°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#518022
RGBrgb(81, 128, 34)
HSLhsl(90, 58%, 32%)
HSVhsv(90, 73%, 50%)
CMYKcmyk(36.7%, 0%, 73.4%, 49.8%)
CIE-LABlab(48.64, -32.03, 43.59)
CIE-LCHlch(48.64, 54.09, 126.31°)
OKLaboklab(54.65% -0.0901 0.0983)
OKLCHoklch(54.65% 0.133 132.5)
XYZxyz(11.4011, 17.3027, 4.2521)
Luminance0.1730 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518022 #512280
analogous
#808022 #518022 #228022
triadic
#518022 #225180 #802251
tetradic
#518022 #228080 #512280 #802222
square
#518022 #228080 #512280 #802222
split-complementary
#518022 #222280 #802280
monochromatic
#141F08 #325015 #518022 #70B02F #8ED04D

Accessibility & contrast

On white

4.71
#518022 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#518022 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #518022
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518022#FFFFFF#000000##FFFFFF
##5180221.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857612
Deuteranopia (green-blind)
#7F722B
Tritanopia (blue-blind)
#527B6E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #518022;
/* rgb */ color: rgb(81, 128, 34);
/* oklch */ color: oklch(54.6% 0.133 132.5);
Tailwind
colors: {
  custom: {
    50: '#86a563',
    500: '#518022',
    950: '#000000',
  },
}
SCSS
$custom: #518022;
$custom-light: #86a563;
$custom-dark: #000000;
JSON
{
  "hex": "#518022",
  "rgb": {
    "r": 81,
    "g": 128,
    "b": 34
  },
  "hsl": {
    "h": 90,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.54645,
    "c": 0.13338,
    "h": 132.5
  },
  "luminance": 0.17303
}

Semantic roles & 50–950 ramp

primary
#518022
secondary
#7F4BB2
accent
#47E194
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #518022

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

Preview Lab → · Contrast checker → · Palette generator →

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