#518E2A#518E2A

#518E2A is a mid, vivid yellow-green. Relative luminance 0.213; OKLCH L 58.4% C 0.147 H 135.6°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#518E2A
RGBrgb(81, 142, 42)
HSLhsl(97, 54%, 36%)
HSVhsv(97, 70%, 56%)
CMYKcmyk(43%, 0%, 70.4%, 44.3%)
CIE-LABlab(53.23, -37.65, 45.07)
CIE-LCHlch(53.23, 58.73, 129.88°)
OKLaboklab(58.42% -0.1048 0.1026)
OKLCHoklch(58.42% 0.147 135.6)
XYZxyz(13.4839, 21.2617, 5.5835)
Luminance0.2126 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518E2A #672A8E
analogous
#838E2A #518E2A #2A8E35
triadic
#518E2A #2A518E #8E2A51
tetradic
#518E2A #2A838E #672A8E #8E352A
square
#518E2A #2A838E #672A8E #8E352A
split-complementary
#518E2A #352A8E #8E2A83
monochromatic
#1B300E #365F1C #518E2A #6CBD38 #8DD162

Accessibility & contrast

On white

4.00
#518E2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#518E2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518E2A
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518E2A#FFFFFF#000000##000000
##518E2A1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#93821B
Deuteranopia (green-blind)
#8B7D33
Tritanopia (blue-blind)
#4F897A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #518e2a;
/* rgb */ color: rgb(81, 142, 42);
/* oklch */ color: oklch(58.4% 0.147 135.6);
Tailwind
colors: {
  custom: {
    50: '#87af69',
    500: '#518e2a',
    950: '#000000',
  },
}
SCSS
$custom: #518e2a;
$custom-light: #87af69;
$custom-dark: #000000;
JSON
{
  "hex": "#518e2a",
  "rgb": {
    "r": 81,
    "g": 142,
    "b": 42
  },
  "hsl": {
    "h": 96.6,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.58421,
    "c": 0.14662,
    "h": 135.6
  },
  "luminance": 0.21262
}

Semantic roles & 50–950 ramp

primary
#518E2A
secondary
#945DB6
accent
#4ADEA4
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #518E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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