#518E28#518E28

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

Color values

HEX#518E28
RGBrgb(81, 142, 40)
HSLhsl(96, 56%, 36%)
HSVhsv(96, 72%, 56%)
CMYKcmyk(43%, 0%, 71.8%, 44.3%)
CIE-LABlab(53.22, -37.81, 45.86)
CIE-LCHlch(53.22, 59.44, 129.50°)
OKLaboklab(58.4% -0.1054 0.104)
OKLCHoklch(58.4% 0.148 135.4)
XYZxyz(13.4490, 21.2478, 5.3997)
Luminance0.2125 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518E28 #65288E
analogous
#848E28 #518E28 #288E32
triadic
#518E28 #28518E #8E2851
tetradic
#518E28 #28848E #65288E #8E3228
square
#518E28 #28848E #65288E #8E3228
split-complementary
#518E28 #32288E #8E2884
monochromatic
#1B2F0D #365E1B #518E28 #6CBE35 #8DD25F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##518E28#FFFFFF#000000##000000
##518E281.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)
#938218
Deuteranopia (green-blind)
#8B7D31
Tritanopia (blue-blind)
#4F897A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #518e28;
/* rgb */ color: rgb(81, 142, 40);
/* oklch */ color: oklch(58.4% 0.148 135.4);
Tailwind
colors: {
  custom: {
    50: '#87af68',
    500: '#518e28',
    950: '#000000',
  },
}
SCSS
$custom: #518e28;
$custom-light: #87af68;
$custom-dark: #000000;
JSON
{
  "hex": "#518e28",
  "rgb": {
    "r": 81,
    "g": 142,
    "b": 40
  },
  "hsl": {
    "h": 95.882,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.58404,
    "c": 0.14801,
    "h": 135.4
  },
  "luminance": 0.21249
}

Semantic roles & 50–950 ramp

primary
#518E28
secondary
#925BB7
accent
#48DFA3
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #518E28

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

Preview Lab → · Contrast checker → · Palette generator →

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