#518115#518115

#518115 is a mid, vivid yellow-green. Relative luminance 0.175; OKLCH L 54.8% C 0.142 H 131.6°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#518115
RGBrgb(81, 129, 21)
HSLhsl(87, 72%, 29%)
HSVhsv(87, 84%, 51%)
CMYKcmyk(37.2%, 0%, 83.7%, 49.4%)
CIE-LABlab(48.89, -33.26, 48.36)
CIE-LCHlch(48.89, 58.69, 124.52°)
OKLaboklab(54.82% -0.0944 0.1062)
OKLCHoklch(54.82% 0.142 131.6)
XYZxyz(11.3788, 17.5035, 3.4883)
Luminance0.1750 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518115 #451581
analogous
#817B15 #518115 #1B8115
triadic
#518115 #155181 #811551
tetradic
#518115 #15817B #451581 #81151B
square
#518115 #15817B #451581 #81151B
split-complementary
#518115 #151B81 #7B1581
monochromatic
#111A04 #304C0C #518115 #72B61E #92DE33

Accessibility & contrast

On white

4.67
#518115 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#518115 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #518115
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518115#FFFFFF#000000##FFFFFF
##5181151.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#807322
Tritanopia (blue-blind)
#527B6E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #518115;
/* rgb */ color: rgb(81, 129, 21);
/* oklch */ color: oklch(54.8% 0.142 131.6);
Tailwind
colors: {
  custom: {
    50: '#87a65e',
    500: '#518115',
    950: '#000000',
  },
}
SCSS
$custom: #518115;
$custom-light: #87a65e;
$custom-dark: #000000;
JSON
{
  "hex": "#518115",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 21
  },
  "hsl": {
    "h": 86.667,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.54824,
    "c": 0.14212,
    "h": 131.6
  },
  "luminance": 0.17504
}

Semantic roles & 50–950 ramp

primary
#518115
secondary
#723CB6
accent
#39EF8A
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #518115

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

Preview Lab → · Contrast checker → · Palette generator →

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