#517D1B#517D1B

#517D1B is a mid, vivid yellow-green. Relative luminance 0.165; OKLCH L 53.8% C 0.134 H 131.2°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#517D1B
RGBrgb(81, 125, 27)
HSLhsl(87, 64%, 30%)
HSVhsv(87, 78%, 49%)
CMYKcmyk(35.2%, 0%, 78.4%, 51%)
CIE-LABlab(47.62, -31.11, 45.23)
CIE-LCHlch(47.62, 54.89, 124.52°)
OKLaboklab(53.8% -0.0882 0.1006)
OKLCHoklch(53.8% 0.134 131.2)
XYZxyz(10.9247, 16.4953, 3.6450)
Luminance0.1650 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517D1B #471B7D
analogous
#7D781B #517D1B #207D1B
triadic
#517D1B #1B517D #7D1B51
tetradic
#517D1B #1B7D78 #471B7D #7D1B20
square
#517D1B #1B7D78 #471B7D #7D1B20
split-complementary
#517D1B #1B207D #781B7D
monochromatic
#101905 #304B10 #517D1B #72AF26 #91D53D

Accessibility & contrast

On white

4.88
#517D1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#517D1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517D1B
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517D1B#FFFFFF#000000##FFFFFF
##517D1B1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837304
Deuteranopia (green-blind)
#7D7025
Tritanopia (blue-blind)
#53776A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #517d1b;
/* rgb */ color: rgb(81, 125, 27);
/* oklch */ color: oklch(53.8% 0.134 131.2);
Tailwind
colors: {
  custom: {
    50: '#86a360',
    500: '#517d1b',
    950: '#000000',
  },
}
SCSS
$custom: #517d1b;
$custom-light: #86a360;
$custom-dark: #000000;
JSON
{
  "hex": "#517d1b",
  "rgb": {
    "r": 81,
    "g": 125,
    "b": 27
  },
  "hsl": {
    "h": 86.939,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.53797,
    "c": 0.1338,
    "h": 131.2
  },
  "luminance": 0.16496
}

Semantic roles & 50–950 ramp

primary
#517D1B
secondary
#7443B1
accent
#40E78B
background
#F8FAF5
surface
#F0F3EA
border
#CBCDC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #517D1B

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

Preview Lab → · Contrast checker → · Palette generator →

#517D1B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva