#517B2F#517B2F

#517B2F is a mid, moderate yellow-green. Relative luminance 0.161; OKLCH L 53.5% C 0.116 H 133.3°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#517B2F
RGBrgb(81, 123, 47)
HSLhsl(93, 45%, 33%)
HSVhsv(93, 62%, 48%)
CMYKcmyk(34.1%, 0%, 61.8%, 51.8%)
CIE-LABlab(47.13, -28.54, 36.19)
CIE-LCHlch(47.13, 46.08, 128.26°)
OKLaboklab(53.45% -0.0795 0.0844)
OKLCHoklch(53.45% 0.116 133.3)
XYZxyz(10.9892, 16.1201, 5.2213)
Luminance0.1612 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517B2F #592F7B
analogous
#777B2F #517B2F #2F7B33
triadic
#517B2F #2F517B #7B2F51
tetradic
#517B2F #2F777B #592F7B #7B332F
square
#517B2F #2F777B #592F7B #7B332F
split-complementary
#517B2F #332F7B #7B2F77
monochromatic
#17220D #344F1E #517B2F #6EA740 #8DC362

Accessibility & contrast

On white

4.97
#517B2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#517B2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517B2F
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517B2F#FFFFFF#000000##FFFFFF
##517B2F1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807227
Deuteranopia (green-blind)
#7A6F35
Tritanopia (blue-blind)
#51766B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #517b2f;
/* rgb */ color: rgb(81, 123, 47);
/* oklch */ color: oklch(53.5% 0.116 133.3);
Tailwind
colors: {
  custom: {
    50: '#85a16a',
    500: '#517b2f',
    950: '#000000',
  },
}
SCSS
$custom: #517b2f;
$custom-light: #85a16a;
$custom-dark: #000000;
JSON
{
  "hex": "#517b2f",
  "rgb": {
    "r": 81,
    "g": 123,
    "b": 47
  },
  "hsl": {
    "h": 93.158,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.53453,
    "c": 0.11595,
    "h": 133.3
  },
  "luminance": 0.1612
}

Semantic roles & 50–950 ramp

primary
#517B2F
secondary
#875CAA
accent
#53D49B
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0F07
muted
#7C7E7A

Preview Lab

Preview with #517B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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