#518018#518018

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

Color values

HEX#518018
RGBrgb(81, 128, 24)
HSLhsl(87, 68%, 30%)
HSVhsv(87, 81%, 50%)
CMYKcmyk(36.7%, 0%, 81.3%, 49.8%)
CIE-LABlab(48.58, -32.66, 47.15)
CIE-LCHlch(48.58, 57.36, 124.71°)
OKLaboklab(54.58% -0.0926 0.1042)
OKLCHoklch(54.58% 0.139 131.6)
XYZxyz(11.2773, 17.2532, 3.6000)
Luminance0.1725 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518018 #471880
analogous
#807B18 #518018 #1D8018
triadic
#518018 #185180 #801851
tetradic
#518018 #18807B #471880 #80181D
square
#518018 #18807B #471880 #80181D
split-complementary
#518018 #181D80 #7B1880
monochromatic
#101A05 #304C0E #518018 #72B422 #91DA39

Accessibility & contrast

On white

4.72
#518018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#518018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #518018
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518018#FFFFFF#000000##FFFFFF
##5180181.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#7F7223
Tritanopia (blue-blind)
#527A6D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #518018;
/* rgb */ color: rgb(81, 128, 24);
/* oklch */ color: oklch(54.6% 0.139 131.6);
Tailwind
colors: {
  custom: {
    50: '#86a55f',
    500: '#518018',
    950: '#000000',
  },
}
SCSS
$custom: #518018;
$custom-light: #86a55f;
$custom-dark: #000000;
JSON
{
  "hex": "#518018",
  "rgb": {
    "r": 81,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 87.115,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.54575,
    "c": 0.13938,
    "h": 131.6
  },
  "luminance": 0.17254
}

Semantic roles & 50–950 ramp

primary
#518018
secondary
#7440B4
accent
#3DEB8B
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #518018

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

Preview Lab → · Contrast checker → · Palette generator →

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