#517E1F#517E1F

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

Color values

HEX#517E1F
RGBrgb(81, 126, 31)
HSLhsl(88, 61%, 31%)
HSVhsv(88, 75%, 49%)
CMYKcmyk(35.7%, 0%, 75.4%, 50.6%)
CIE-LABlab(47.97, -31.32, 44.09)
CIE-LCHlch(47.97, 54.08, 125.38°)
OKLaboklab(54.09% -0.0884 0.0989)
OKLCHoklch(54.09% 0.133 131.8)
XYZxyz(11.1014, 16.7695, 3.9480)
Luminance0.1677 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517E1F #4C1F7E
analogous
#7E7B1F #517E1F #217E1F
triadic
#517E1F #1F517E #7E1F51
tetradic
#517E1F #1F7E7B #4C1F7E #7E1F21
square
#517E1F #1F7E7B #4C1F7E #7E1F21
split-complementary
#517E1F #1F217E #7B1F7E
monochromatic
#121C07 #314D13 #517E1F #71AF2B #8FD146

Accessibility & contrast

On white

4.82
#517E1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #517E1F
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517E1F#FFFFFF#000000##FFFFFF
##517E1F1.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84740D
Deuteranopia (green-blind)
#7D7128
Tritanopia (blue-blind)
#52796C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #517e1f;
/* rgb */ color: rgb(81, 126, 31);
/* oklch */ color: oklch(54.1% 0.133 131.8);
Tailwind
colors: {
  custom: {
    50: '#86a362',
    500: '#517e1f',
    950: '#000000',
  },
}
SCSS
$custom: #517e1f;
$custom-light: #86a362;
$custom-dark: #000000;
JSON
{
  "hex": "#517e1f",
  "rgb": {
    "r": 81,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 88.421,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.54091,
    "c": 0.13267,
    "h": 131.8
  },
  "luminance": 0.1677
}

Semantic roles & 50–950 ramp

primary
#517E1F
secondary
#7A48B1
accent
#44E490
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #517E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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