#517D2A#517D2A

#517D2A is a mid, vivid yellow-green. Relative luminance 0.166; OKLCH L 53.9% C 0.123 H 132.9°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#517D2A
RGBrgb(81, 125, 42)
HSLhsl(92, 50%, 33%)
HSVhsv(92, 66%, 49%)
CMYKcmyk(35.2%, 0%, 66.4%, 51%)
CIE-LABlab(47.73, -29.98, 39.21)
CIE-LCHlch(47.73, 49.36, 127.40°)
OKLaboklab(53.93% -0.0839 0.0902)
OKLCHoklch(53.93% 0.123 132.9)
XYZxyz(11.1447, 16.5833, 4.8037)
Luminance0.1658 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517D2A #562A7D
analogous
#7B7D2A #517D2A #2A7D2C
triadic
#517D2A #2A517D #7D2A51
tetradic
#517D2A #2A7B7D #562A7D #7D2C2A
square
#517D2A #2A7B7D #562A7D #7D2C2A
split-complementary
#517D2A #2C2A7D #7D2A7B
monochromatic
#16210B #334F1B #517D2A #6FAB39 #8DC85A

Accessibility & contrast

On white

4.86
#517D2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#517D2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517D2A
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517D2A#FFFFFF#000000##FFFFFF
##517D2A1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827320
Deuteranopia (green-blind)
#7C7031
Tritanopia (blue-blind)
#52786C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #517d2a;
/* rgb */ color: rgb(81, 125, 42);
/* oklch */ color: oklch(53.9% 0.123 132.9);
Tailwind
colors: {
  custom: {
    50: '#85a368',
    500: '#517d2a',
    950: '#000000',
  },
}
SCSS
$custom: #517d2a;
$custom-light: #85a368;
$custom-dark: #000000;
JSON
{
  "hex": "#517d2a",
  "rgb": {
    "r": 81,
    "g": 125,
    "b": 42
  },
  "hsl": {
    "h": 91.807,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.53925,
    "c": 0.1232,
    "h": 132.9
  },
  "luminance": 0.16584
}

Semantic roles & 50–950 ramp

primary
#517D2A
secondary
#8456AD
accent
#4FD998
background
#F8FAF6
surface
#EFF3EB
border
#CACDC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #517D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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