#518E18#518E18

#518E18 is a mid, vivid yellow-green. Relative luminance 0.212; OKLCH L 58.3% C 0.157 H 134.0°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#518E18
RGBrgb(81, 142, 24)
HSLhsl(91, 71%, 33%)
HSVhsv(91, 83%, 56%)
CMYKcmyk(43%, 0%, 83.1%, 44.3%)
CIE-LABlab(53.12, -38.82, 51.33)
CIE-LCHlch(53.12, 64.36, 127.10°)
OKLaboklab(58.3% -0.1092 0.113)
OKLCHoklch(58.3% 0.157 134)
XYZxyz(13.2310, 21.1606, 4.2512)
Luminance0.2116 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518E18 #55188E
analogous
#8C8E18 #518E18 #188E1A
triadic
#518E18 #18518E #8E1851
tetradic
#518E18 #188C8E #55188E #8E1A18
square
#518E18 #188C8E #55188E #8E1A18
split-complementary
#518E18 #1A188E #8E188C
monochromatic
#152506 #335A0F #518E18 #6FC221 #8EDF41

Accessibility & contrast

On white

4.01
#518E18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#518E18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518E18
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518E18#FFFFFF#000000##000000
##518E181.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#8C7D26
Tritanopia (blue-blind)
#508879
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #518e18;
/* rgb */ color: rgb(81, 142, 24);
/* oklch */ color: oklch(58.3% 0.157 134.0);
Tailwind
colors: {
  custom: {
    50: '#88af61',
    500: '#518e18',
    950: '#000000',
  },
}
SCSS
$custom: #518e18;
$custom-light: #88af61;
$custom-dark: #000000;
JSON
{
  "hex": "#518e18",
  "rgb": {
    "r": 81,
    "g": 142,
    "b": 24
  },
  "hsl": {
    "h": 91.017,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.58296,
    "c": 0.15711,
    "h": 134
  },
  "luminance": 0.21161
}

Semantic roles & 50–950 ramp

primary
#518E18
secondary
#8342C0
accent
#3AEE97
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #518E18

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

Preview Lab → · Contrast checker → · Palette generator →

#518E18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva