#517E2F#517E2F

#517E2F is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.2% C 0.120 H 133.9°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#517E2F
RGBrgb(81, 126, 47)
HSLhsl(94, 46%, 34%)
HSVhsv(94, 63%, 49%)
CMYKcmyk(35.7%, 0%, 62.7%, 50.6%)
CIE-LABlab(48.10, -29.96, 37.28)
CIE-LCHlch(48.10, 47.83, 128.79°)
OKLaboklab(54.24% -0.0834 0.0867)
OKLCHoklch(54.24% 0.12 133.9)
XYZxyz(11.3671, 16.8758, 5.3472)
Luminance0.1688 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517E2F #5C2F7E
analogous
#797E2F #517E2F #2F7E35
triadic
#517E2F #2F517E #7E2F51
tetradic
#517E2F #2F797E #5C2F7E #7E352F
square
#517E2F #2F797E #5C2F7E #7E352F
split-complementary
#517E2F #352F7E #7E2F79
monochromatic
#18250E #34511E #517E2F #6EAB40 #8DC563

Accessibility & contrast

On white

4.80
#517E2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#517E2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517E2F
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517E2F#FFFFFF#000000##FFFFFF
##517E2F1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837526
Deuteranopia (green-blind)
#7C7135
Tritanopia (blue-blind)
#51796D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #517e2f;
/* rgb */ color: rgb(81, 126, 47);
/* oklch */ color: oklch(54.2% 0.120 133.9);
Tailwind
colors: {
  custom: {
    50: '#85a36b',
    500: '#517e2f',
    950: '#000000',
  },
}
SCSS
$custom: #517e2f;
$custom-light: #85a36b;
$custom-dark: #000000;
JSON
{
  "hex": "#517e2f",
  "rgb": {
    "r": 81,
    "g": 126,
    "b": 47
  },
  "hsl": {
    "h": 94.177,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.54244,
    "c": 0.12035,
    "h": 133.9
  },
  "luminance": 0.16876
}

Semantic roles & 50–950 ramp

primary
#517E2F
secondary
#8A5DAC
accent
#52D59D
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F07
muted
#7C7F7A

Preview Lab

Preview with #517E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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