#517225#517225

#517225 is a mid, moderate yellow-green. Relative luminance 0.139; OKLCH L 51.0% C 0.112 H 129.5°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#517225
RGBrgb(81, 114, 37)
HSLhsl(86, 51%, 30%)
HSVhsv(86, 68%, 45%)
CMYKcmyk(28.9%, 0%, 67.5%, 55.3%)
CIE-LABlab(44.11, -25.10, 37.59)
CIE-LCHlch(44.11, 45.20, 123.73°)
OKLaboklab(50.97% -0.0709 0.0861)
OKLCHoklch(50.97% 0.112 129.5)
XYZxyz(9.7445, 13.9173, 3.9228)
Luminance0.1392 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517225 #462572
analogous
#726C25 #517225 #2B7225
triadic
#517225 #255172 #722551
tetradic
#517225 #25726C #462572 #72252B
square
#517225 #25726C #462572 #72252B
split-complementary
#517225 #252B72 #6C2572
monochromatic
#101707 #304416 #517225 #72A034 #91C54C

Accessibility & contrast

On white

5.55
#517225 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#517225 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517225
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517225#FFFFFF#000000##FFFFFF
##5172251.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776A1B
Deuteranopia (green-blind)
#73682B
Tritanopia (blue-blind)
#536D62
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #517225;
/* rgb */ color: rgb(81, 114, 37);
/* oklch */ color: oklch(51.0% 0.112 129.5);
Tailwind
colors: {
  custom: {
    50: '#849a64',
    500: '#517225',
    950: '#000000',
  },
}
SCSS
$custom: #517225;
$custom-light: #849a64;
$custom-dark: #000000;
JSON
{
  "hex": "#517225",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 37
  },
  "hsl": {
    "h": 85.714,
    "s": 50.993,
    "l": 29.608
  },
  "oklch": {
    "l": 0.50969,
    "c": 0.1116,
    "h": 129.5
  },
  "luminance": 0.13918
}

Semantic roles & 50–950 ramp

primary
#517225
secondary
#734EA5
accent
#4DDA8A
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0E05
muted
#7C7E7A

Preview Lab

Preview with #517225

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

Preview Lab → · Contrast checker → · Palette generator →

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