#517817#517817

#517817 is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.4% C 0.129 H 129.7°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#517817
RGBrgb(81, 120, 23)
HSLhsl(84, 68%, 28%)
HSVhsv(84, 81%, 47%)
CMYKcmyk(32.5%, 0%, 80.8%, 52.9%)
CIE-LABlab(45.97, -28.99, 45.04)
CIE-LCHlch(45.97, 53.56, 122.77°)
OKLaboklab(52.44% -0.0828 0.0996)
OKLCHoklch(52.44% 0.129 129.7)
XYZxyz(10.2644, 15.2438, 3.2120)
Luminance0.1524 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517817 #3E1778
analogous
#786E17 #517817 #207817
triadic
#517817 #175178 #781751
tetradic
#517817 #17786E #3E1778 #781720
square
#517817 #17786E #3E1778 #781720
split-complementary
#517817 #172078 #6E1778
monochromatic
#111A05 #2E450D #517817 #74AB21 #95D832

Accessibility & contrast

On white

5.19
#517817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#517817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517817
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517817#FFFFFF#000000##FFFFFF
##5178171.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#796C21
Tritanopia (blue-blind)
#537266
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #517817;
/* rgb */ color: rgb(81, 120, 23);
/* oklch */ color: oklch(52.4% 0.129 129.7);
Tailwind
colors: {
  custom: {
    50: '#869f5d',
    500: '#517817',
    950: '#000000',
  },
}
SCSS
$custom: #517817;
$custom-light: #869f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#517817",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 84.124,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52443,
    "c": 0.12947,
    "h": 129.7
  },
  "luminance": 0.15244
}

Semantic roles & 50–950 ramp

primary
#517817
secondary
#6A3EAD
accent
#3DEB83
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #517817

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

Preview Lab → · Contrast checker → · Palette generator →

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