#518B28#518B28

#518B28 is a mid, vivid yellow-green. Relative luminance 0.204; OKLCH L 57.6% C 0.144 H 135.0°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#518B28
RGBrgb(81, 139, 40)
HSLhsl(95, 55%, 35%)
HSVhsv(95, 71%, 55%)
CMYKcmyk(41.7%, 0%, 71.2%, 45.5%)
CIE-LABlab(52.25, -36.51, 44.86)
CIE-LCHlch(52.25, 57.84, 129.14°)
OKLaboklab(57.61% -0.1018 0.1019)
OKLCHoklch(57.61% 0.144 135)
XYZxyz(13.0087, 20.3671, 5.2529)
Luminance0.2037 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518B28 #62288B
analogous
#828B28 #518B28 #288B31
triadic
#518B28 #28518B #8B2851
tetradic
#518B28 #28828B #62288B #8B3128
square
#518B28 #28828B #62288B #8B3128
split-complementary
#518B28 #31288B #8B2882
monochromatic
#1A2C0D #355B1A #518B28 #6DBB36 #8DD05D

Accessibility & contrast

On white

4.14
#518B28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#518B28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518B28
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518B28#FFFFFF#000000##000000
##518B281.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#908019
Deuteranopia (green-blind)
#887B31
Tritanopia (blue-blind)
#508677
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #518b28;
/* rgb */ color: rgb(81, 139, 40);
/* oklch */ color: oklch(57.6% 0.144 135.0);
Tailwind
colors: {
  custom: {
    50: '#87ad68',
    500: '#518b28',
    950: '#000000',
  },
}
SCSS
$custom: #518b28;
$custom-light: #87ad68;
$custom-dark: #000000;
JSON
{
  "hex": "#518b28",
  "rgb": {
    "r": 81,
    "g": 139,
    "b": 40
  },
  "hsl": {
    "h": 95.152,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.5761,
    "c": 0.14403,
    "h": 135
  },
  "luminance": 0.20368
}

Semantic roles & 50–950 ramp

primary
#518B28
secondary
#8F59B6
accent
#49DFA1
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #518B28

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

Preview Lab → · Contrast checker → · Palette generator →

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