#517F2A#517F2A

#517F2A is a mid, vivid yellow-green. Relative luminance 0.171; OKLCH L 54.5% C 0.126 H 133.3°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#517F2A
RGBrgb(81, 127, 42)
HSLhsl(92, 50%, 33%)
HSVhsv(92, 67%, 50%)
CMYKcmyk(36.2%, 0%, 66.9%, 50.2%)
CIE-LABlab(48.38, -30.91, 39.91)
CIE-LCHlch(48.38, 50.48, 127.76°)
OKLaboklab(54.45% -0.0864 0.0917)
OKLCHoklch(54.45% 0.126 133.3)
XYZxyz(11.4004, 17.0948, 4.8890)
Luminance0.1709 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517F2A #582A7F
analogous
#7B7F2A #517F2A #2A7F2E
triadic
#517F2A #2A517F #7F2A51
tetradic
#517F2A #2A7B7F #582A7F #7F2E2A
square
#517F2A #2A7B7F #582A7F #7F2E2A
split-complementary
#517F2A #2E2A7F #7F2A7B
monochromatic
#16230C #34511B #517F2A #6EAD39 #8DC95B

Accessibility & contrast

On white

4.75
#517F2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#517F2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517F2A
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517F2A#FFFFFF#000000##FFFFFF
##517F2A1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84751F
Deuteranopia (green-blind)
#7E7231
Tritanopia (blue-blind)
#517A6D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #517f2a;
/* rgb */ color: rgb(81, 127, 42);
/* oklch */ color: oklch(54.5% 0.126 133.3);
Tailwind
colors: {
  custom: {
    50: '#85a468',
    500: '#517f2a',
    950: '#000000',
  },
}
SCSS
$custom: #517f2a;
$custom-light: #85a468;
$custom-dark: #000000;
JSON
{
  "hex": "#517f2a",
  "rgb": {
    "r": 81,
    "g": 127,
    "b": 42
  },
  "hsl": {
    "h": 92.471,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.54453,
    "c": 0.12603,
    "h": 133.3
  },
  "luminance": 0.17095
}

Semantic roles & 50–950 ramp

primary
#517F2A
secondary
#8657AE
accent
#4EDA9A
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #517F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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