#518418#518418

#518418 is a mid, vivid yellow-green. Relative luminance 0.183; OKLCH L 55.6% C 0.145 H 132.4°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#518418
RGBrgb(81, 132, 24)
HSLhsl(88, 69%, 31%)
HSVhsv(88, 82%, 52%)
CMYKcmyk(38.6%, 0%, 81.8%, 48.2%)
CIE-LABlab(49.88, -34.46, 48.36)
CIE-LCHlch(49.88, 59.38, 125.48°)
OKLaboklab(55.64% -0.0975 0.1067)
OKLCHoklch(55.64% 0.145 132.4)
XYZxyz(11.8093, 18.3173, 3.7773)
Luminance0.1832 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518418 #4B1884
analogous
#848118 #518418 #1B8418
triadic
#518418 #185184 #841851
tetradic
#518418 #188481 #4B1884 #84181B
square
#518418 #188481 #4B1884 #84181B
split-complementary
#518418 #181B84 #811884
monochromatic
#111C05 #31500F #518418 #71B821 #90DB3B

Accessibility & contrast

On white

4.50
#518418 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#518418 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518418
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518418#FFFFFF#000000##000000
##5184181.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#837524
Tritanopia (blue-blind)
#527E70
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #518418;
/* rgb */ color: rgb(81, 132, 24);
/* oklch */ color: oklch(55.6% 0.145 132.4);
Tailwind
colors: {
  custom: {
    50: '#87a85f',
    500: '#518418',
    950: '#000000',
  },
}
SCSS
$custom: #518418;
$custom-light: #87a85f;
$custom-dark: #000000;
JSON
{
  "hex": "#518418",
  "rgb": {
    "r": 81,
    "g": 132,
    "b": 24
  },
  "hsl": {
    "h": 88.333,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.55638,
    "c": 0.14451,
    "h": 132.4
  },
  "luminance": 0.18318
}

Semantic roles & 50–950 ramp

primary
#518418
secondary
#7940B8
accent
#3CEC8F
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #518418

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

Preview Lab → · Contrast checker → · Palette generator →

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