#518C22#518C22

#518C22 is a mid, vivid yellow-green. Relative luminance 0.206; OKLCH L 57.8% C 0.149 H 134.5°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#518C22
RGBrgb(81, 140, 34)
HSLhsl(93, 61%, 34%)
HSVhsv(93, 76%, 55%)
CMYKcmyk(42.1%, 0%, 75.7%, 45.1%)
CIE-LABlab(52.53, -37.38, 47.48)
CIE-LCHlch(52.53, 60.43, 128.21°)
OKLaboklab(57.83% -0.1046 0.1065)
OKLCHoklch(57.83% 0.149 134.5)
XYZxyz(13.0599, 20.6203, 4.8050)
Luminance0.2062 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518C22 #5D228C
analogous
#868C22 #518C22 #228C28
triadic
#518C22 #22518C #8C2251
tetradic
#518C22 #22868C #5D228C #8C2822
square
#518C22 #22868C #5D228C #8C2822
split-complementary
#518C22 #28228C #8C2286
monochromatic
#182A0A #355B16 #518C22 #6DBD2E #8DD553

Accessibility & contrast

On white

4.10
#518C22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#518C22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518C22
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518C22#FFFFFF#000000##000000
##518C221.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#92800D
Deuteranopia (green-blind)
#8A7C2D
Tritanopia (blue-blind)
#508678
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #518c22;
/* rgb */ color: rgb(81, 140, 34);
/* oklch */ color: oklch(57.8% 0.149 134.5);
Tailwind
colors: {
  custom: {
    50: '#87ae65',
    500: '#518c22',
    950: '#000000',
  },
}
SCSS
$custom: #518c22;
$custom-light: #87ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#518c22",
  "rgb": {
    "r": 81,
    "g": 140,
    "b": 34
  },
  "hsl": {
    "h": 93.396,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57827,
    "c": 0.14928,
    "h": 134.5
  },
  "luminance": 0.20621
}

Semantic roles & 50–950 ramp

primary
#518C22
secondary
#8B51B9
accent
#44E49D
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #518C22

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

Preview Lab → · Contrast checker → · Palette generator →

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