#518A1B#518A1B

#518A1B is a mid, vivid yellow-green. Relative luminance 0.200; OKLCH L 57.3% C 0.151 H 133.6°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#518A1B
RGBrgb(81, 138, 27)
HSLhsl(91, 67%, 32%)
HSVhsv(91, 80%, 54%)
CMYKcmyk(41.3%, 0%, 80.4%, 45.9%)
CIE-LABlab(51.84, -36.95, 49.23)
CIE-LCHlch(51.84, 61.55, 126.88°)
OKLaboklab(57.25% -0.104 0.109)
OKLCHoklch(57.25% 0.151 133.6)
XYZxyz(12.6794, 20.0048, 4.2299)
Luminance0.2001 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518A1B #541B8A
analogous
#898A1B #518A1B #1B8A1D
triadic
#518A1B #1B518A #8A1B51
tetradic
#518A1B #1B898A #541B8A #8A1D1B
square
#518A1B #1B898A #541B8A #8A1D1B
split-complementary
#518A1B #1D1B8A #8A1B89
monochromatic
#152407 #335711 #518A1B #6FBD25 #8EDB45

Accessibility & contrast

On white

4.20
#518A1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#518A1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518A1B
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518A1B#FFFFFF#000000##000000
##518A1B1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#887A27
Tritanopia (blue-blind)
#518475
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #518a1b;
/* rgb */ color: rgb(81, 138, 27);
/* oklch */ color: oklch(57.3% 0.151 133.6);
Tailwind
colors: {
  custom: {
    50: '#87ac61',
    500: '#518a1b',
    950: '#000000',
  },
}
SCSS
$custom: #518a1b;
$custom-light: #87ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#518a1b",
  "rgb": {
    "r": 81,
    "g": 138,
    "b": 27
  },
  "hsl": {
    "h": 90.811,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.5725,
    "c": 0.15064,
    "h": 133.6
  },
  "luminance": 0.20005
}

Semantic roles & 50–950 ramp

primary
#518A1B
secondary
#8245BC
accent
#3EEA96
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #518A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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