#518C2D#518C2D

#518C2D is a mid, vivid yellow-green. Relative luminance 0.207; OKLCH L 57.9% C 0.142 H 135.7°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#518C2D
RGBrgb(81, 140, 45)
HSLhsl(97, 51%, 36%)
HSVhsv(97, 68%, 55%)
CMYKcmyk(42.1%, 0%, 67.9%, 45.1%)
CIE-LABlab(52.61, -36.52, 43.14)
CIE-LCHlch(52.61, 56.52, 130.25°)
OKLaboklab(57.92% -0.1015 0.0989)
OKLCHoklch(57.92% 0.142 135.7)
XYZxyz(13.2447, 20.6942, 5.7786)
Luminance0.2069 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518C2D #682D8C
analogous
#818C2D #518C2D #2D8C39
triadic
#518C2D #2D518C #8C2D51
tetradic
#518C2D #2D818C #682D8C #8C392D
square
#518C2D #2D818C #682D8C #8C392D
split-complementary
#518C2D #392D8C #8C2D81
monochromatic
#1B2F0F #365E1E #518C2D #6CBA3C #8DCE66

Accessibility & contrast

On white

4.09
#518C2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#518C2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #518C2D
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518C2D#FFFFFF#000000##000000
##518C2D1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#918120
Deuteranopia (green-blind)
#897C35
Tritanopia (blue-blind)
#4F8779
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #518c2d;
/* rgb */ color: rgb(81, 140, 45);
/* oklch */ color: oklch(57.9% 0.142 135.7);
Tailwind
colors: {
  custom: {
    50: '#87ae6b',
    500: '#518c2d',
    950: '#000000',
  },
}
SCSS
$custom: #518c2d;
$custom-light: #87ae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#518c2d",
  "rgb": {
    "r": 81,
    "g": 140,
    "b": 45
  },
  "hsl": {
    "h": 97.263,
    "s": 51.351,
    "l": 36.275
  },
  "oklch": {
    "l": 0.5792,
    "c": 0.14172,
    "h": 135.7
  },
  "luminance": 0.20695
}

Semantic roles & 50–950 ramp

primary
#518C2D
secondary
#9560B4
accent
#4DDBA5
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #518C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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