#517311#517311

#517311 is a mid, vivid yellow-green. Relative luminance 0.141; OKLCH L 51.1% C 0.126 H 128.0°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#517311
RGBrgb(81, 115, 17)
HSLhsl(81, 74%, 26%)
HSVhsv(81, 85%, 45%)
CMYKcmyk(29.6%, 0%, 85.2%, 54.9%)
CIE-LABlab(44.31, -26.88, 45.40)
CIE-LCHlch(44.31, 52.76, 120.63°)
OKLaboklab(51.08% -0.0775 0.0993)
OKLCHoklch(51.08% 0.126 128)
XYZxyz(9.6253, 14.0510, 2.7352)
Luminance0.1405 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517311 #331173
analogous
#736411 #517311 #207311
triadic
#517311 #115173 #731151
tetradic
#517311 #117364 #331173 #731120
square
#517311 #117364 #331173 #731120
split-complementary
#517311 #112073 #641173
monochromatic
#131B04 #2B3E09 #517311 #77A819 #9CDE21

Accessibility & contrast

On white

5.51
#517311 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#517311 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517311
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517311#FFFFFF#000000##FFFFFF
##5173111.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#75681C
Tritanopia (blue-blind)
#546D61
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #517311;
/* rgb */ color: rgb(81, 115, 17);
/* oklch */ color: oklch(51.1% 0.126 128.0);
Tailwind
colors: {
  custom: {
    50: '#869b5a',
    500: '#517311',
    950: '#000000',
  },
}
SCSS
$custom: #517311;
$custom-light: #869b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#517311",
  "rgb": {
    "r": 81,
    "g": 115,
    "b": 17
  },
  "hsl": {
    "h": 80.816,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.51082,
    "c": 0.12596,
    "h": 128
  },
  "luminance": 0.14051
}

Semantic roles & 50–950 ramp

primary
#517311
secondary
#5E36AA
accent
#37F177
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #517311

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

Preview Lab → · Contrast checker → · Palette generator →

#517311 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva