#517E1A#517E1A

#517E1A is a mid, vivid yellow-green. Relative luminance 0.167; OKLCH L 54.1% C 0.136 H 131.4°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#517E1A
RGBrgb(81, 126, 26)
HSLhsl(87, 66%, 30%)
HSVhsv(87, 79%, 49%)
CMYKcmyk(35.7%, 0%, 79.4%, 50.6%)
CIE-LABlab(47.94, -31.63, 45.88)
CIE-LCHlch(47.94, 55.73, 124.58°)
OKLaboklab(54.06% -0.0897 0.1018)
OKLCHoklch(54.06% 0.136 131.4)
XYZxyz(11.0405, 16.7452, 3.6275)
Luminance0.1675 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517E1A #471A7E
analogous
#7E791A #517E1A #1F7E1A
triadic
#517E1A #1A517E #7E1A51
tetradic
#517E1A #1A7E79 #471A7E #7E1A1F
square
#517E1A #1A7E79 #471A7E #7E1A1F
split-complementary
#517E1A #1A1F7E #791A7E
monochromatic
#101905 #304B10 #517E1A #72B124 #91D73C

Accessibility & contrast

On white

4.83
#517E1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#517E1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517E1A
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517E1A#FFFFFF#000000##FFFFFF
##517E1A1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847402
Deuteranopia (green-blind)
#7E7124
Tritanopia (blue-blind)
#53786B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #517e1a;
/* rgb */ color: rgb(81, 126, 26);
/* oklch */ color: oklch(54.1% 0.136 131.4);
Tailwind
colors: {
  custom: {
    50: '#86a35f',
    500: '#517e1a',
    950: '#000000',
  },
}
SCSS
$custom: #517e1a;
$custom-light: #86a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#517e1a",
  "rgb": {
    "r": 81,
    "g": 126,
    "b": 26
  },
  "hsl": {
    "h": 87,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.54056,
    "c": 0.1357,
    "h": 131.4
  },
  "luminance": 0.16746
}

Semantic roles & 50–950 ramp

primary
#517E1A
secondary
#7442B2
accent
#3FE98B
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #517E1A

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

Preview Lab → · Contrast checker → · Palette generator →

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