#517822#517822

#517822 is a mid, vivid yellow-green. Relative luminance 0.153; OKLCH L 52.5% C 0.122 H 130.8°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#517822
RGBrgb(81, 120, 34)
HSLhsl(87, 56%, 30%)
HSVhsv(87, 72%, 47%)
CMYKcmyk(32.5%, 0%, 71.7%, 52.9%)
CIE-LABlab(46.04, -28.27, 40.94)
CIE-LCHlch(46.04, 49.75, 124.63°)
OKLaboklab(52.53% -0.0799 0.0927)
OKLCHoklch(52.53% 0.122 130.8)
XYZxyz(10.3985, 15.2974, 3.9179)
Luminance0.1530 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517822 #492278
analogous
#787422 #517822 #267822
triadic
#517822 #225178 #782251
tetradic
#517822 #227874 #492278 #782226
square
#517822 #227874 #492278 #782226
split-complementary
#517822 #222678 #742278
monochromatic
#111907 #314814 #517822 #71A830 #90CB49

Accessibility & contrast

On white

5.17
#517822 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#517822 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517822
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517822#FFFFFF#000000##FFFFFF
##5178221.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F15
Deuteranopia (green-blind)
#786C29
Tritanopia (blue-blind)
#537367
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #517822;
/* rgb */ color: rgb(81, 120, 34);
/* oklch */ color: oklch(52.5% 0.122 130.8);
Tailwind
colors: {
  custom: {
    50: '#859f62',
    500: '#517822',
    950: '#000000',
  },
}
SCSS
$custom: #517822;
$custom-light: #859f62;
$custom-dark: #000000;
JSON
{
  "hex": "#517822",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 34
  },
  "hsl": {
    "h": 87.209,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52525,
    "c": 0.12242,
    "h": 130.8
  },
  "luminance": 0.15298
}

Semantic roles & 50–950 ramp

primary
#517822
secondary
#764BAB
accent
#49DF8D
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0B0E05
muted
#7C7E7A

Preview Lab

Preview with #517822

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

Preview Lab → · Contrast checker → · Palette generator →

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