#517D1C#517D1C

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

Color values

HEX#517D1C
RGBrgb(81, 125, 28)
HSLhsl(87, 63%, 30%)
HSVhsv(87, 78%, 49%)
CMYKcmyk(35.2%, 0%, 77.6%, 51%)
CIE-LABlab(47.62, -31.05, 44.87)
CIE-LCHlch(47.62, 54.57, 124.68°)
OKLaboklab(53.8% -0.088 0.1)
OKLCHoklch(53.8% 0.133 131.3)
XYZxyz(10.9365, 16.5000, 3.7070)
Luminance0.1650 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517D1C #481C7D
analogous
#7D781C #517D1C #217D1C
triadic
#517D1C #1C517D #7D1C51
tetradic
#517D1C #1C7D78 #481C7D #7D1C21
square
#517D1C #1C7D78 #481C7D #7D1C21
split-complementary
#517D1C #1C217D #781C7D
monochromatic
#101906 #314B11 #517D1C #71AF27 #91D43F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##517D1C#FFFFFF#000000##FFFFFF
##517D1C1.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)
#837307
Deuteranopia (green-blind)
#7D7026
Tritanopia (blue-blind)
#53786B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #517d1c;
/* rgb */ color: rgb(81, 125, 28);
/* oklch */ color: oklch(53.8% 0.133 131.3);
Tailwind
colors: {
  custom: {
    50: '#86a360',
    500: '#517d1c',
    950: '#000000',
  },
}
SCSS
$custom: #517d1c;
$custom-light: #86a360;
$custom-dark: #000000;
JSON
{
  "hex": "#517d1c",
  "rgb": {
    "r": 81,
    "g": 125,
    "b": 28
  },
  "hsl": {
    "h": 87.216,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.53803,
    "c": 0.13321,
    "h": 131.3
  },
  "luminance": 0.165
}

Semantic roles & 50–950 ramp

primary
#517D1C
secondary
#7544B1
accent
#41E68C
background
#F8FAF5
surface
#F0F3EA
border
#CBCDC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #517D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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