#518F18#518F18

#518F18 is a mid, vivid yellow-green. Relative luminance 0.215; OKLCH L 58.6% C 0.158 H 134.2°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#518F18
RGBrgb(81, 143, 24)
HSLhsl(91, 71%, 33%)
HSVhsv(91, 83%, 56%)
CMYKcmyk(43.4%, 0%, 83.2%, 43.9%)
CIE-LABlab(53.45, -39.24, 51.63)
CIE-LCHlch(53.45, 64.85, 127.24°)
OKLaboklab(58.56% -0.1103 0.1136)
OKLCHoklch(58.56% 0.158 134.2)
XYZxyz(13.3804, 21.4595, 4.3010)
Luminance0.2146 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518F18 #56188F
analogous
#8C8F18 #518F18 #188F1B
triadic
#518F18 #18518F #8F1851
tetradic
#518F18 #188C8F #56188F #8F1B18
square
#518F18 #188C8F #56188F #8F1B18
split-complementary
#518F18 #1B188F #8F188C
monochromatic
#162606 #335B0F #518F18 #6FC321 #8DDF42

Accessibility & contrast

On white

3.97
#518F18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#518F18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518F18
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518F18#FFFFFF#000000##000000
##518F181.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#8D7E26
Tritanopia (blue-blind)
#50897A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #518f18;
/* rgb */ color: rgb(81, 143, 24);
/* oklch */ color: oklch(58.6% 0.158 134.2);
Tailwind
colors: {
  custom: {
    50: '#88b061',
    500: '#518f18',
    950: '#000000',
  },
}
SCSS
$custom: #518f18;
$custom-light: #88b061;
$custom-dark: #000000;
JSON
{
  "hex": "#518f18",
  "rgb": {
    "r": 81,
    "g": 143,
    "b": 24
  },
  "hsl": {
    "h": 91.261,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.58562,
    "c": 0.15834,
    "h": 134.2
  },
  "luminance": 0.2146
}

Semantic roles & 50–950 ramp

primary
#518F18
secondary
#8443C0
accent
#3AEE98
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #518F18

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

Preview Lab → · Contrast checker → · Palette generator →

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