#517E2A#517E2A

#517E2A is a mid, vivid yellow-green. Relative luminance 0.168; OKLCH L 54.2% C 0.125 H 133.1°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#517E2A
RGBrgb(81, 126, 42)
HSLhsl(92, 50%, 33%)
HSVhsv(92, 67%, 49%)
CMYKcmyk(35.7%, 0%, 66.7%, 50.6%)
CIE-LABlab(48.05, -30.45, 39.56)
CIE-LCHlch(48.05, 49.92, 127.58°)
OKLaboklab(54.19% -0.0852 0.091)
OKLCHoklch(54.19% 0.125 133.1)
XYZxyz(11.2719, 16.8378, 4.8461)
Luminance0.1684 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517E2A #572A7E
analogous
#7B7E2A #517E2A #2A7E2D
triadic
#517E2A #2A517E #7E2A51
tetradic
#517E2A #2A7B7E #572A7E #7E2D2A
square
#517E2A #2A7B7E #572A7E #7E2D2A
split-complementary
#517E2A #2D2A7E #7E2A7B
monochromatic
#16220B #33501B #517E2A #6FAC39 #8DC85A

Accessibility & contrast

On white

4.81
#517E2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#517E2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517E2A
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517E2A#FFFFFF#000000##FFFFFF
##517E2A1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83741F
Deuteranopia (green-blind)
#7D7131
Tritanopia (blue-blind)
#51796D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #517e2a;
/* rgb */ color: rgb(81, 126, 42);
/* oklch */ color: oklch(54.2% 0.125 133.1);
Tailwind
colors: {
  custom: {
    50: '#85a368',
    500: '#517e2a',
    950: '#000000',
  },
}
SCSS
$custom: #517e2a;
$custom-light: #85a368;
$custom-dark: #000000;
JSON
{
  "hex": "#517e2a",
  "rgb": {
    "r": 81,
    "g": 126,
    "b": 42
  },
  "hsl": {
    "h": 92.143,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.54189,
    "c": 0.12462,
    "h": 133.1
  },
  "luminance": 0.16838
}

Semantic roles & 50–950 ramp

primary
#517E2A
secondary
#8556AE
accent
#4EDA99
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #517E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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