#518121#518121

#518121 is a mid, vivid yellow-green. Relative luminance 0.176; OKLCH L 54.9% C 0.135 H 132.6°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#518121
RGBrgb(81, 129, 33)
HSLhsl(90, 59%, 32%)
HSVhsv(90, 74%, 51%)
CMYKcmyk(37.2%, 0%, 74.4%, 49.4%)
CIE-LABlab(48.96, -32.56, 44.31)
CIE-LCHlch(48.96, 54.98, 126.31°)
OKLaboklab(54.9% -0.0917 0.0997)
OKLCHoklch(54.9% 0.135 132.6)
XYZxyz(11.5180, 17.5592, 4.2209)
Luminance0.1756 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#518121 #512181
analogous
#818121 #518121 #218121
triadic
#518121 #215181 #812151
tetradic
#518121 #218181 #512181 #812121
square
#518121 #218181 #512181 #812121
split-complementary
#518121 #212181 #812181
monochromatic
#142008 #325015 #518121 #70B22D #8ED14B

Accessibility & contrast

On white

4.65
#518121 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#518121 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #518121
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##518121#FFFFFF#000000##FFFFFF
##5181211.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877710
Deuteranopia (green-blind)
#80732A
Tritanopia (blue-blind)
#527C6E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #518121;
/* rgb */ color: rgb(81, 129, 33);
/* oklch */ color: oklch(54.9% 0.135 132.6);
Tailwind
colors: {
  custom: {
    50: '#86a663',
    500: '#518121',
    950: '#000000',
  },
}
SCSS
$custom: #518121;
$custom-light: #86a663;
$custom-dark: #000000;
JSON
{
  "hex": "#518121",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 33
  },
  "hsl": {
    "h": 90,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.54902,
    "c": 0.13539,
    "h": 132.6
  },
  "luminance": 0.1756
}

Semantic roles & 50–950 ramp

primary
#518121
secondary
#7F4AB4
accent
#45E294
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #518121

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

Preview Lab → · Contrast checker → · Palette generator →

#518121 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva