#518116#518116

#518116 is a mid, vivid yellow-green. Relative luminance 0.175; OKLCH L 54.8% C 0.142 H 131.7°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#518116
RGBrgb(81, 129, 22)
HSLhsl(87, 71%, 30%)
HSVhsv(87, 83%, 51%)
CMYKcmyk(37.2%, 0%, 82.9%, 49.4%)
CIE-LABlab(48.89, -33.22, 48.06)
CIE-LCHlch(48.89, 58.42, 124.65°)
OKLaboklab(54.83% -0.0942 0.1058)
OKLCHoklch(54.83% 0.142 131.7)
XYZxyz(11.3883, 17.5073, 3.5381)
Luminance0.1751 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518116 #461681
analogous
#817C16 #518116 #1B8116
triadic
#518116 #165181 #811651
tetradic
#518116 #16817C #461681 #81161B
square
#518116 #16817C #461681 #81161B
split-complementary
#518116 #161B81 #7C1681
monochromatic
#101A04 #304D0D #518116 #72B51F #91DD35

Accessibility & contrast

On white

4.67
#518116 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#518116 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #518116
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518116#FFFFFF#000000##FFFFFF
##5181161.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#807322
Tritanopia (blue-blind)
#527B6E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #518116;
/* rgb */ color: rgb(81, 129, 22);
/* oklch */ color: oklch(54.8% 0.142 131.7);
Tailwind
colors: {
  custom: {
    50: '#87a65e',
    500: '#518116',
    950: '#000000',
  },
}
SCSS
$custom: #518116;
$custom-light: #87a65e;
$custom-dark: #000000;
JSON
{
  "hex": "#518116",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 22
  },
  "hsl": {
    "h": 86.916,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.54829,
    "c": 0.14165,
    "h": 131.7
  },
  "luminance": 0.17508
}

Semantic roles & 50–950 ramp

primary
#518116
secondary
#733DB6
accent
#3AEE8B
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #518116

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

Preview Lab → · Contrast checker → · Palette generator →

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