#517218#517218

#517218 is a mid, vivid yellow-green. Relative luminance 0.139; OKLCH L 50.9% C 0.121 H 128.1°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#517218
RGBrgb(81, 114, 24)
HSLhsl(82, 65%, 27%)
HSVhsv(82, 79%, 45%)
CMYKcmyk(28.9%, 0%, 78.9%, 55.3%)
CIE-LABlab(44.02, -26.04, 42.85)
CIE-LCHlch(44.02, 50.14, 121.28°)
OKLaboklab(50.86% -0.0747 0.0951)
OKLCHoklch(50.86% 0.121 128.1)
XYZxyz(9.5755, 13.8497, 3.0327)
Luminance0.1385 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517218 #391872
analogous
#726618 #517218 #247218
triadic
#517218 #185172 #721851
tetradic
#517218 #187266 #391872 #721824
square
#517218 #187266 #391872 #721824
split-complementary
#517218 #182472 #661872
monochromatic
#121905 #2D3F0D #517218 #75A523 #98D431

Accessibility & contrast

On white

5.57
#517218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #517218
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517218#FFFFFF#000000##FFFFFF
##5172181.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786904
Deuteranopia (green-blind)
#736721
Tritanopia (blue-blind)
#546D61
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #517218;
/* rgb */ color: rgb(81, 114, 24);
/* oklch */ color: oklch(50.9% 0.121 128.1);
Tailwind
colors: {
  custom: {
    50: '#859a5d',
    500: '#517218',
    950: '#000000',
  },
}
SCSS
$custom: #517218;
$custom-light: #859a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#517218",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 82,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.50858,
    "c": 0.12094,
    "h": 128.1
  },
  "luminance": 0.1385
}

Semantic roles & 50–950 ramp

primary
#517218
secondary
#653EA7
accent
#40E87D
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #517218

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

Preview Lab → · Contrast checker → · Palette generator →

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