#517128#517128

#517128 is a mid, moderate yellow-green. Relative luminance 0.137; OKLCH L 50.7% C 0.108 H 129.6°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#517128
RGBrgb(81, 113, 40)
HSLhsl(86, 48%, 30%)
HSVhsv(86, 65%, 44%)
CMYKcmyk(28.3%, 0%, 64.6%, 55.7%)
CIE-LABlab(43.82, -24.33, 35.86)
CIE-LCHlch(43.82, 43.33, 124.15°)
OKLaboklab(50.74% -0.0685 0.0829)
OKLCHoklch(50.74% 0.108 129.6)
XYZxyz(9.6814, 13.7125, 4.1438)
Luminance0.1371 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517128 #482871
analogous
#716C28 #517128 #2D7128
triadic
#517128 #285171 #712851
tetradic
#517128 #28716C #482871 #71282D
square
#517128 #28716C #482871 #71282D
split-complementary
#517128 #282D71 #6C2871
monochromatic
#101708 #314418 #517128 #719E38 #91C252

Accessibility & contrast

On white

5.61
#517128 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#517128 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517128
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517128#FFFFFF#000000##FFFFFF
##5171281.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76691F
Deuteranopia (green-blind)
#72672D
Tritanopia (blue-blind)
#536C62
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #517128;
/* rgb */ color: rgb(81, 113, 40);
/* oklch */ color: oklch(50.7% 0.108 129.6);
Tailwind
colors: {
  custom: {
    50: '#849a65',
    500: '#517128',
    950: '#000000',
  },
}
SCSS
$custom: #517128;
$custom-light: #849a65;
$custom-dark: #000000;
JSON
{
  "hex": "#517128",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 40
  },
  "hsl": {
    "h": 86.301,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.50738,
    "c": 0.10756,
    "h": 129.6
  },
  "luminance": 0.13713
}

Semantic roles & 50–950 ramp

primary
#517128
secondary
#7552A3
accent
#50D78C
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0E06
muted
#7C7E7A

Preview Lab

Preview with #517128

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

Preview Lab → · Contrast checker → · Palette generator →

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