#518015#518015

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

Color values

HEX#518015
RGBrgb(81, 128, 21)
HSLhsl(86, 72%, 29%)
HSVhsv(86, 84%, 50%)
CMYKcmyk(36.7%, 0%, 83.6%, 49.8%)
CIE-LABlab(48.56, -32.81, 48.06)
CIE-LCHlch(48.56, 58.19, 124.32°)
OKLaboklab(54.56% -0.0932 0.1056)
OKLCHoklch(54.56% 0.141 131.4)
XYZxyz(11.2478, 17.2414, 3.4446)
Luminance0.1724 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518015 #441580
analogous
#807A15 #518015 #1C8015
triadic
#518015 #155180 #801551
tetradic
#518015 #15807A #441580 #80151C
square
#518015 #15807A #441580 #80151C
split-complementary
#518015 #151C80 #7A1580
monochromatic
#111A04 #304B0C #518015 #72B51E #92DD32

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##518015#FFFFFF#000000##FFFFFF
##5180151.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)
#807221
Tritanopia (blue-blind)
#527A6D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #518015;
/* rgb */ color: rgb(81, 128, 21);
/* oklch */ color: oklch(54.6% 0.141 131.4);
Tailwind
colors: {
  custom: {
    50: '#86a55d',
    500: '#518015',
    950: '#000000',
  },
}
SCSS
$custom: #518015;
$custom-light: #86a55d;
$custom-dark: #000000;
JSON
{
  "hex": "#518015",
  "rgb": {
    "r": 81,
    "g": 128,
    "b": 21
  },
  "hsl": {
    "h": 86.355,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.54558,
    "c": 0.14085,
    "h": 131.4
  },
  "luminance": 0.17242
}

Semantic roles & 50–950 ramp

primary
#518015
secondary
#713CB5
accent
#39EF89
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #518015

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

Preview Lab → · Contrast checker → · Palette generator →

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