#517A18#517A18

#517A18 is a mid, vivid yellow-green. Relative luminance 0.157; OKLCH L 53.0% C 0.132 H 130.3°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#517A18
RGBrgb(81, 122, 24)
HSLhsl(85, 67%, 29%)
HSVhsv(85, 80%, 48%)
CMYKcmyk(33.6%, 0%, 80.3%, 52.2%)
CIE-LABlab(46.62, -29.88, 45.32)
CIE-LCHlch(46.62, 54.29, 123.40°)
OKLaboklab(52.98% -0.0851 0.1003)
OKLCHoklch(52.98% 0.132 130.3)
XYZxyz(10.5177, 15.7340, 3.3468)
Luminance0.1573 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517A18 #41187A
analogous
#7A7218 #517A18 #207A18
triadic
#517A18 #18517A #7A1851
tetradic
#517A18 #187A72 #41187A #7A1820
square
#517A18 #187A72 #41187A #7A1820
split-complementary
#517A18 #18207A #72187A
monochromatic
#111A05 #2F470E #517A18 #73AD22 #93D735

Accessibility & contrast

On white

5.06
#517A18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#517A18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517A18
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517A18#FFFFFF#000000##FFFFFF
##517A181.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#7A6D22
Tritanopia (blue-blind)
#537468
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #517a18;
/* rgb */ color: rgb(81, 122, 24);
/* oklch */ color: oklch(53.0% 0.132 130.3);
Tailwind
colors: {
  custom: {
    50: '#86a05e',
    500: '#517a18',
    950: '#000000',
  },
}
SCSS
$custom: #517a18;
$custom-light: #86a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#517a18",
  "rgb": {
    "r": 81,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 85.102,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.5298,
    "c": 0.13156,
    "h": 130.3
  },
  "luminance": 0.15734
}

Semantic roles & 50–950 ramp

primary
#517A18
secondary
#6E3FAF
accent
#3EEA86
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #517A18

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

Preview Lab → · Contrast checker → · Palette generator →

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