#517F1A#517F1A

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

Color values

HEX#517F1A
RGBrgb(81, 127, 26)
HSLhsl(87, 66%, 30%)
HSVhsv(87, 80%, 50%)
CMYKcmyk(36.2%, 0%, 79.5%, 50.2%)
CIE-LABlab(48.26, -32.09, 46.19)
CIE-LCHlch(48.26, 56.24, 124.79°)
OKLaboklab(54.32% -0.0909 0.1025)
OKLCHoklch(54.32% 0.137 131.6)
XYZxyz(11.1691, 17.0022, 3.6704)
Luminance0.1700 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517F1A #481A7F
analogous
#7F7B1A #517F1A #1E7F1A
triadic
#517F1A #1A517F #7F1A51
tetradic
#517F1A #1A7F7B #481A7F #7F1A1E
square
#517F1A #1A7F7B #481A7F #7F1A1E
split-complementary
#517F1A #1A1E7F #7B1A7F
monochromatic
#101905 #314C10 #517F1A #71B224 #91D73C

Accessibility & contrast

On white

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

On black

4.40
#517F1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##517F1A#FFFFFF#000000##FFFFFF
##517F1A1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857501
Deuteranopia (green-blind)
#7F7125
Tritanopia (blue-blind)
#52796C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #517f1a;
/* rgb */ color: rgb(81, 127, 26);
/* oklch */ color: oklch(54.3% 0.137 131.6);
Tailwind
colors: {
  custom: {
    50: '#86a45f',
    500: '#517f1a',
    950: '#000000',
  },
}
SCSS
$custom: #517f1a;
$custom-light: #86a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#517f1a",
  "rgb": {
    "r": 81,
    "g": 127,
    "b": 26
  },
  "hsl": {
    "h": 87.327,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.54321,
    "c": 0.137,
    "h": 131.6
  },
  "luminance": 0.17003
}

Semantic roles & 50–950 ramp

primary
#517F1A
secondary
#7542B3
accent
#3FE98C
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #517F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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