#517A1B#517A1B

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

Color values

HEX#517A1B
RGBrgb(81, 122, 27)
HSLhsl(86, 64%, 29%)
HSVhsv(86, 78%, 48%)
CMYKcmyk(33.6%, 0%, 77.9%, 52.2%)
CIE-LABlab(46.64, -29.71, 44.29)
CIE-LCHlch(46.64, 53.33, 123.85°)
OKLaboklab(53% -0.0844 0.0987)
OKLCHoklch(53% 0.13 130.5)
XYZxyz(10.5506, 15.7472, 3.5203)
Luminance0.1575 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517A1B #441B7A
analogous
#7A741B #517A1B #227A1B
triadic
#517A1B #1B517A #7A1B51
tetradic
#517A1B #1B7A74 #441B7A #7A1B22
square
#517A1B #1B7A74 #441B7A #7A1B22
split-complementary
#517A1B #1B227A #741B7A
monochromatic
#111906 #304810 #517A1B #72AC26 #92D43C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##517A1B#FFFFFF#000000##FFFFFF
##517A1B1.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)
#807006
Deuteranopia (green-blind)
#7A6E24
Tritanopia (blue-blind)
#537568
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #517a1b;
/* rgb */ color: rgb(81, 122, 27);
/* oklch */ color: oklch(53.0% 0.130 130.5);
Tailwind
colors: {
  custom: {
    50: '#86a05f',
    500: '#517a1b',
    950: '#000000',
  },
}
SCSS
$custom: #517a1b;
$custom-light: #86a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#517a1b",
  "rgb": {
    "r": 81,
    "g": 122,
    "b": 27
  },
  "hsl": {
    "h": 85.895,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53,
    "c": 0.12983,
    "h": 130.5
  },
  "luminance": 0.15748
}

Semantic roles & 50–950 ramp

primary
#517A1B
secondary
#7143AE
accent
#41E789
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #517A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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