#517820#517820

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

Color values

HEX#517820
RGBrgb(81, 120, 32)
HSLhsl(87, 58%, 30%)
HSVhsv(87, 73%, 47%)
CMYKcmyk(32.5%, 0%, 73.3%, 52.9%)
CIE-LABlab(46.02, -28.42, 41.75)
CIE-LCHlch(46.02, 50.51, 124.25°)
OKLaboklab(52.51% -0.0805 0.0941)
OKLCHoklch(52.51% 0.124 130.5)
XYZxyz(10.3704, 15.2862, 3.7704)
Luminance0.1529 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517820 #472078
analogous
#787320 #517820 #257820
triadic
#517820 #205178 #782051
tetradic
#517820 #207873 #472078 #782025
square
#517820 #207873 #472078 #782025
split-complementary
#517820 #202578 #732078
monochromatic
#101806 #304813 #517820 #72A82D #91CD45

Accessibility & contrast

On white

5.18
#517820 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #517820
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517820#FFFFFF#000000##FFFFFF
##5178201.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #517820;
/* rgb */ color: rgb(81, 120, 32);
/* oklch */ color: oklch(52.5% 0.124 130.5);
Tailwind
colors: {
  custom: {
    50: '#859f61',
    500: '#517820',
    950: '#000000',
  },
}
SCSS
$custom: #517820;
$custom-light: #859f61;
$custom-dark: #000000;
JSON
{
  "hex": "#517820",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 32
  },
  "hsl": {
    "h": 86.591,
    "s": 57.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52508,
    "c": 0.12386,
    "h": 130.5
  },
  "luminance": 0.15287
}

Semantic roles & 50–950 ramp

primary
#517820
secondary
#7448AB
accent
#47E18B
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #517820

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

Preview Lab → · Contrast checker → · Palette generator →

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