#518518#518518

#518518 is a mid, vivid yellow-green. Relative luminance 0.186; OKLCH L 55.9% C 0.146 H 132.6°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#518518
RGBrgb(81, 133, 24)
HSLhsl(89, 69%, 31%)
HSVhsv(89, 82%, 52%)
CMYKcmyk(39.1%, 0%, 82%, 47.8%)
CIE-LABlab(50.20, -34.91, 48.66)
CIE-LCHlch(50.20, 59.88, 125.66°)
OKLaboklab(55.9% -0.0987 0.1073)
OKLCHoklch(55.9% 0.146 132.6)
XYZxyz(11.9456, 18.5898, 3.8228)
Luminance0.1859 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518518 #4C1885
analogous
#858218 #518518 #1A8518
triadic
#518518 #185185 #851851
tetradic
#518518 #188582 #4C1885 #85181A
square
#518518 #188582 #4C1885 #85181A
split-complementary
#518518 #181A85 #821885
monochromatic
#121D05 #31510F #518518 #71B921 #8FDC3C

Accessibility & contrast

On white

4.45
#518518 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#518518 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518518
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518518#FFFFFF#000000##000000
##5185181.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#847624
Tritanopia (blue-blind)
#527F71
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #518518;
/* rgb */ color: rgb(81, 133, 24);
/* oklch */ color: oklch(55.9% 0.146 132.6);
Tailwind
colors: {
  custom: {
    50: '#87a95f',
    500: '#518518',
    950: '#000000',
  },
}
SCSS
$custom: #518518;
$custom-light: #87a95f;
$custom-dark: #000000;
JSON
{
  "hex": "#518518",
  "rgb": {
    "r": 81,
    "g": 133,
    "b": 24
  },
  "hsl": {
    "h": 88.624,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.55904,
    "c": 0.14579,
    "h": 132.6
  },
  "luminance": 0.1859
}

Semantic roles & 50–950 ramp

primary
#518518
secondary
#7A40B9
accent
#3CEC90
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #518518

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

Preview Lab → · Contrast checker → · Palette generator →

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