#517A2F#517A2F

#517A2F is a mid, moderate yellow-green. Relative luminance 0.159; OKLCH L 53.2% C 0.114 H 133.1°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#517A2F
RGBrgb(81, 122, 47)
HSLhsl(93, 44%, 33%)
HSVhsv(93, 61%, 48%)
CMYKcmyk(33.6%, 0%, 61.5%, 52.2%)
CIE-LABlab(46.81, -28.06, 35.82)
CIE-LCHlch(46.81, 45.50, 128.07°)
OKLaboklab(53.19% -0.0782 0.0836)
OKLCHoklch(53.19% 0.114 133.1)
XYZxyz(10.8658, 15.8732, 5.1801)
Luminance0.1587 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517A2F #582F7A
analogous
#767A2F #517A2F #2F7A32
triadic
#517A2F #2F517A #7A2F51
tetradic
#517A2F #2F767A #582F7A #7A322F
square
#517A2F #2F767A #582F7A #7A322F
split-complementary
#517A2F #322F7A #7A2F76
monochromatic
#16220D #344E1E #517A2F #6EA640 #8DC261

Accessibility & contrast

On white

5.03
#517A2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#517A2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517A2F
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517A2F#FFFFFF#000000##FFFFFF
##517A2F1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7127
Deuteranopia (green-blind)
#796E34
Tritanopia (blue-blind)
#51756A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #517a2f;
/* rgb */ color: rgb(81, 122, 47);
/* oklch */ color: oklch(53.2% 0.114 133.1);
Tailwind
colors: {
  custom: {
    50: '#85a06a',
    500: '#517a2f',
    950: '#000000',
  },
}
SCSS
$custom: #517a2f;
$custom-light: #85a06a;
$custom-dark: #000000;
JSON
{
  "hex": "#517a2f",
  "rgb": {
    "r": 81,
    "g": 122,
    "b": 47
  },
  "hsl": {
    "h": 92.8,
    "s": 44.379,
    "l": 33.137
  },
  "oklch": {
    "l": 0.53189,
    "c": 0.11448,
    "h": 133.1
  },
  "luminance": 0.15874
}

Semantic roles & 50–950 ramp

primary
#517A2F
secondary
#865CA9
accent
#54D49A
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0F07
muted
#7C7E7A

Preview Lab

Preview with #517A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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