#517F1F#517F1F

#517F1F is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.4% C 0.134 H 132.0°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#517F1F
RGBrgb(81, 127, 31)
HSLhsl(89, 61%, 31%)
HSVhsv(89, 76%, 50%)
CMYKcmyk(36.2%, 0%, 75.6%, 50.2%)
CIE-LABlab(48.29, -31.78, 44.42)
CIE-LCHlch(48.29, 54.61, 125.58°)
OKLaboklab(54.36% -0.0897 0.0996)
OKLCHoklch(54.36% 0.134 132)
XYZxyz(11.2299, 17.0266, 3.9908)
Luminance0.1703 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517F1F #4D1F7F
analogous
#7F7D1F #517F1F #217F1F
triadic
#517F1F #1F517F #7F1F51
tetradic
#517F1F #1F7F7D #4D1F7F #7F1F21
square
#517F1F #1F7F7D #4D1F7F #7F1F21
split-complementary
#517F1F #1F217F #7D1F7F
monochromatic
#121D07 #324E13 #517F1F #70B02B #8FD246

Accessibility & contrast

On white

4.77
#517F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#517F1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517F1F
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517F1F#FFFFFF#000000##FFFFFF
##517F1F1.004.774.414.77
#FFFFFF4.771.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#85750D
Deuteranopia (green-blind)
#7E7128
Tritanopia (blue-blind)
#527A6C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #517f1f;
/* rgb */ color: rgb(81, 127, 31);
/* oklch */ color: oklch(54.4% 0.134 132.0);
Tailwind
colors: {
  custom: {
    50: '#86a462',
    500: '#517f1f',
    950: '#000000',
  },
}
SCSS
$custom: #517f1f;
$custom-light: #86a462;
$custom-dark: #000000;
JSON
{
  "hex": "#517f1f",
  "rgb": {
    "r": 81,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 88.75,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54356,
    "c": 0.13402,
    "h": 132
  },
  "luminance": 0.17027
}

Semantic roles & 50–950 ramp

primary
#517F1F
secondary
#7B48B2
accent
#44E491
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #517F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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