#518B18#518B18

#518B18 is a mid, vivid yellow-green. Relative luminance 0.203; OKLCH L 57.5% C 0.153 H 133.6°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#518B18
RGBrgb(81, 139, 24)
HSLhsl(90, 71%, 32%)
HSVhsv(90, 83%, 55%)
CMYKcmyk(41.7%, 0%, 82.7%, 45.5%)
CIE-LABlab(52.15, -37.53, 50.44)
CIE-LCHlch(52.15, 62.88, 126.65°)
OKLaboklab(57.5% -0.1057 0.1111)
OKLCHoklch(57.5% 0.153 133.6)
XYZxyz(12.7906, 20.2799, 4.1044)
Luminance0.2028 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518B18 #52188B
analogous
#8B8B18 #518B18 #188B19
triadic
#518B18 #18518B #8B1851
tetradic
#518B18 #188B8B #52188B #8B1918
square
#518B18 #188B8B #52188B #8B1918
split-complementary
#518B18 #19188B #8B188B
monochromatic
#142306 #33570F #518B18 #6FBF21 #8EDE3F

Accessibility & contrast

On white

4.15
#518B18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#518B18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518B18
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518B18#FFFFFF#000000##000000
##518B181.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#897B26
Tritanopia (blue-blind)
#518576
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #518b18;
/* rgb */ color: rgb(81, 139, 24);
/* oklch */ color: oklch(57.5% 0.153 133.6);
Tailwind
colors: {
  custom: {
    50: '#87ad60',
    500: '#518b18',
    950: '#000000',
  },
}
SCSS
$custom: #518b18;
$custom-light: #87ad60;
$custom-dark: #000000;
JSON
{
  "hex": "#518b18",
  "rgb": {
    "r": 81,
    "g": 139,
    "b": 24
  },
  "hsl": {
    "h": 90.261,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.57499,
    "c": 0.15336,
    "h": 133.6
  },
  "luminance": 0.20281
}

Semantic roles & 50–950 ramp

primary
#518B18
secondary
#8040BE
accent
#3AED95
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #518B18

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

Preview Lab → · Contrast checker → · Palette generator →

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