#518B22#518B22

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

Color values

HEX#518B22
RGBrgb(81, 139, 34)
HSLhsl(93, 61%, 34%)
HSVhsv(93, 76%, 55%)
CMYKcmyk(41.7%, 0%, 75.5%, 45.5%)
CIE-LABlab(52.21, -36.95, 47.16)
CIE-LCHlch(52.21, 59.91, 128.08°)
OKLaboklab(57.56% -0.1035 0.1058)
OKLCHoklch(57.56% 0.148 134.4)
XYZxyz(12.9144, 20.3294, 4.7566)
Luminance0.2033 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518B22 #5C228B
analogous
#868B22 #518B22 #228B28
triadic
#518B22 #22518B #8B2251
tetradic
#518B22 #22868B #5C228B #8B2822
square
#518B22 #22868B #5C228B #8B2822
split-complementary
#518B22 #28228B #8B2286
monochromatic
#18290A #345A16 #518B22 #6EBC2E #8DD553

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##518B22#FFFFFF#000000##000000
##518B221.004.155.075.07
#FFFFFF4.151.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0D
Deuteranopia (green-blind)
#897B2C
Tritanopia (blue-blind)
#508577
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #518b22;
/* rgb */ color: rgb(81, 139, 34);
/* oklch */ color: oklch(57.6% 0.148 134.4);
Tailwind
colors: {
  custom: {
    50: '#87ad65',
    500: '#518b22',
    950: '#000000',
  },
}
SCSS
$custom: #518b22;
$custom-light: #87ad65;
$custom-dark: #000000;
JSON
{
  "hex": "#518b22",
  "rgb": {
    "r": 81,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 93.143,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57562,
    "c": 0.14798,
    "h": 134.4
  },
  "luminance": 0.2033
}

Semantic roles & 50–950 ramp

primary
#518B22
secondary
#8A50B8
accent
#44E49C
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #518B22

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

Preview Lab → · Contrast checker → · Palette generator →

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