#517213#517213

#517213 is a mid, vivid yellow-green. Relative luminance 0.138; OKLCH L 50.8% C 0.124 H 127.8°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#517213
RGBrgb(81, 114, 19)
HSLhsl(81, 71%, 26%)
HSVhsv(81, 83%, 45%)
CMYKcmyk(28.9%, 0%, 83.3%, 55.3%)
CIE-LABlab(43.99, -26.30, 44.51)
CIE-LCHlch(43.99, 51.70, 120.58°)
OKLaboklab(50.83% -0.0758 0.0978)
OKLCHoklch(50.83% 0.124 127.8)
XYZxyz(9.5282, 13.8308, 2.7836)
Luminance0.1383 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517213 #341372
analogous
#726313 #517213 #217213
triadic
#517213 #135172 #721351
tetradic
#517213 #137263 #341372 #721321
square
#517213 #137263 #341372 #721321
split-complementary
#517213 #132172 #631372
monochromatic
#131A04 #2C3E0A #517213 #76A61C #9BDB25

Accessibility & contrast

On white

5.58
#517213 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#517213 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517213
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517213#FFFFFF#000000##FFFFFF
##5172131.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#74671D
Tritanopia (blue-blind)
#546C61
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #517213;
/* rgb */ color: rgb(81, 114, 19);
/* oklch */ color: oklch(50.8% 0.124 127.8);
Tailwind
colors: {
  custom: {
    50: '#859a5a',
    500: '#517213',
    950: '#000000',
  },
}
SCSS
$custom: #517213;
$custom-light: #859a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#517213",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 19
  },
  "hsl": {
    "h": 80.842,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.50827,
    "c": 0.1237,
    "h": 127.8
  },
  "luminance": 0.13831
}

Semantic roles & 50–950 ramp

primary
#517213
secondary
#5F38A9
accent
#3AEE78
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #517213

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

Preview Lab → · Contrast checker → · Palette generator →

#517213 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva