#517E1B#517E1B

#517E1B is a mid, vivid yellow-green. Relative luminance 0.168; OKLCH L 54.1% C 0.135 H 131.5°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#517E1B
RGBrgb(81, 126, 27)
HSLhsl(87, 65%, 30%)
HSVhsv(87, 79%, 49%)
CMYKcmyk(35.7%, 0%, 78.6%, 50.6%)
CIE-LABlab(47.94, -31.57, 45.54)
CIE-LCHlch(47.94, 55.41, 124.73°)
OKLaboklab(54.06% -0.0895 0.1013)
OKLCHoklch(54.06% 0.135 131.5)
XYZxyz(11.0519, 16.7497, 3.6874)
Luminance0.1675 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517E1B #481B7E
analogous
#7E7A1B #517E1B #1F7E1B
triadic
#517E1B #1B517E #7E1B51
tetradic
#517E1B #1B7E7A #481B7E #7E1B1F
square
#517E1B #1B7E7A #481B7E #7E1B1F
split-complementary
#517E1B #1B1F7E #7A1B7E
monochromatic
#101905 #314C10 #517E1B #71B026 #91D63E

Accessibility & contrast

On white

4.83
#517E1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#517E1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517E1B
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517E1B#FFFFFF#000000##FFFFFF
##517E1B1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847404
Deuteranopia (green-blind)
#7E7125
Tritanopia (blue-blind)
#52786B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #517e1b;
/* rgb */ color: rgb(81, 126, 27);
/* oklch */ color: oklch(54.1% 0.135 131.5);
Tailwind
colors: {
  custom: {
    50: '#86a360',
    500: '#517e1b',
    950: '#000000',
  },
}
SCSS
$custom: #517e1b;
$custom-light: #86a360;
$custom-dark: #000000;
JSON
{
  "hex": "#517e1b",
  "rgb": {
    "r": 81,
    "g": 126,
    "b": 27
  },
  "hsl": {
    "h": 87.273,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.54062,
    "c": 0.13512,
    "h": 131.5
  },
  "luminance": 0.1675
}

Semantic roles & 50–950 ramp

primary
#517E1B
secondary
#7543B2
accent
#40E88C
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #517E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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