#517D1A#517D1A

#517D1A is a mid, vivid yellow-green. Relative luminance 0.165; OKLCH L 53.8% C 0.134 H 131.2°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#517D1A
RGBrgb(81, 125, 26)
HSLhsl(87, 66%, 30%)
HSVhsv(87, 79%, 49%)
CMYKcmyk(35.2%, 0%, 79.2%, 51%)
CIE-LABlab(47.61, -31.17, 45.57)
CIE-LCHlch(47.61, 55.21, 124.37°)
OKLaboklab(53.79% -0.0884 0.1012)
OKLCHoklch(53.79% 0.134 131.2)
XYZxyz(10.9133, 16.4907, 3.5851)
Luminance0.1649 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517D1A #461A7D
analogous
#7D781A #517D1A #1F7D1A
triadic
#517D1A #1A517D #7D1A51
tetradic
#517D1A #1A7D78 #461A7D #7D1A1F
square
#517D1A #1A7D78 #461A7D #7D1A1F
split-complementary
#517D1A #1A1F7D #781A7D
monochromatic
#101905 #304A0F #517D1A #72B025 #91D63B

Accessibility & contrast

On white

4.89
#517D1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#517D1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517D1A
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517D1A#FFFFFF#000000##FFFFFF
##517D1A1.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837302
Deuteranopia (green-blind)
#7D7024
Tritanopia (blue-blind)
#53776A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #517d1a;
/* rgb */ color: rgb(81, 125, 26);
/* oklch */ color: oklch(53.8% 0.134 131.2);
Tailwind
colors: {
  custom: {
    50: '#86a35f',
    500: '#517d1a',
    950: '#000000',
  },
}
SCSS
$custom: #517d1a;
$custom-light: #86a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#517d1a",
  "rgb": {
    "r": 81,
    "g": 125,
    "b": 26
  },
  "hsl": {
    "h": 86.667,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.5379,
    "c": 0.13438,
    "h": 131.2
  },
  "luminance": 0.16491
}

Semantic roles & 50–950 ramp

primary
#517D1A
secondary
#7342B1
accent
#3FE98A
background
#F8FAF5
surface
#F0F3EA
border
#CBCDC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #517D1A

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

Preview Lab → · Contrast checker → · Palette generator →

#517D1A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva