#517A1C#517A1C

#517A1C is a mid, vivid yellow-green. Relative luminance 0.158; OKLCH L 53.0% C 0.129 H 130.6°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#517A1C
RGBrgb(81, 122, 28)
HSLhsl(86, 63%, 29%)
HSVhsv(86, 77%, 48%)
CMYKcmyk(33.6%, 0%, 77%, 52.2%)
CIE-LABlab(46.65, -29.64, 43.93)
CIE-LCHlch(46.65, 52.99, 124.01°)
OKLaboklab(53.01% -0.0841 0.0981)
OKLCHoklch(53.01% 0.129 130.6)
XYZxyz(10.5624, 15.7519, 3.5823)
Luminance0.1575 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517A1C #451C7A
analogous
#7A741C #517A1C #227A1C
triadic
#517A1C #1C517A #7A1C51
tetradic
#517A1C #1C7A74 #451C7A #7A1C22
square
#517A1C #1C7A74 #451C7A #7A1C22
split-complementary
#517A1C #1C227A #741C7A
monochromatic
#111906 #304811 #517A1C #72AC27 #92D33E

Accessibility & contrast

On white

5.06
#517A1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#517A1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517A1C
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517A1C#FFFFFF#000000##FFFFFF
##517A1C1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807108
Deuteranopia (green-blind)
#7A6E25
Tritanopia (blue-blind)
#537568
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #517a1c;
/* rgb */ color: rgb(81, 122, 28);
/* oklch */ color: oklch(53.0% 0.129 130.6);
Tailwind
colors: {
  custom: {
    50: '#86a060',
    500: '#517a1c',
    950: '#000000',
  },
}
SCSS
$custom: #517a1c;
$custom-light: #86a060;
$custom-dark: #000000;
JSON
{
  "hex": "#517a1c",
  "rgb": {
    "r": 81,
    "g": 122,
    "b": 28
  },
  "hsl": {
    "h": 86.17,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.53007,
    "c": 0.12922,
    "h": 130.6
  },
  "luminance": 0.15752
}

Semantic roles & 50–950 ramp

primary
#517A1C
secondary
#7244AE
accent
#42E689
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #517A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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