#518918#518918

#518918 is a mid, vivid yellow-green. Relative luminance 0.197; OKLCH L 57.0% C 0.151 H 133.3°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#518918
RGBrgb(81, 137, 24)
HSLhsl(90, 70%, 32%)
HSVhsv(90, 82%, 54%)
CMYKcmyk(40.9%, 0%, 82.5%, 46.3%)
CIE-LABlab(51.50, -36.67, 49.85)
CIE-LCHlch(51.50, 61.88, 126.34°)
OKLaboklab(56.97% -0.1034 0.1098)
OKLCHoklch(56.97% 0.151 133.3)
XYZxyz(12.5037, 19.7060, 4.0088)
Luminance0.1971 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518918 #501889
analogous
#898918 #518918 #188918
triadic
#518918 #185189 #891851
tetradic
#518918 #188989 #501889 #891818
square
#518918 #188989 #501889 #891818
split-complementary
#518918 #181889 #891889
monochromatic
#132106 #32550F #518918 #70BD21 #8EDD3E

Accessibility & contrast

On white

4.25
#518918 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#518918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518918
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518918#FFFFFF#000000##000000
##5189181.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#877925
Tritanopia (blue-blind)
#518374
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #518918;
/* rgb */ color: rgb(81, 137, 24);
/* oklch */ color: oklch(57.0% 0.151 133.3);
Tailwind
colors: {
  custom: {
    50: '#87ac60',
    500: '#518918',
    950: '#000000',
  },
}
SCSS
$custom: #518918;
$custom-light: #87ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#518918",
  "rgb": {
    "r": 81,
    "g": 137,
    "b": 24
  },
  "hsl": {
    "h": 89.735,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56967,
    "c": 0.15085,
    "h": 133.3
  },
  "luminance": 0.19707
}

Semantic roles & 50–950 ramp

primary
#518918
secondary
#7E40BD
accent
#3BED93
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #518918

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

Preview Lab → · Contrast checker → · Palette generator →

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