#517018#517018

#517018 is a mid, moderate yellow-green. Relative luminance 0.134; OKLCH L 50.3% C 0.118 H 127.5°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#517018
RGBrgb(81, 112, 24)
HSLhsl(81, 65%, 27%)
HSVhsv(81, 79%, 44%)
CMYKcmyk(27.7%, 0%, 78.6%, 56.1%)
CIE-LABlab(43.36, -25.05, 42.23)
CIE-LCHlch(43.36, 49.10, 120.68°)
OKLaboklab(50.33% -0.072 0.0938)
OKLCHoklch(50.33% 0.118 127.5)
XYZxyz(9.3524, 13.4034, 2.9584)
Luminance0.1340 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517018 #371870
analogous
#706318 #517018 #257018
triadic
#517018 #185170 #701851
tetradic
#517018 #187063 #371870 #701825
square
#517018 #187063 #371870 #701825
split-complementary
#517018 #182570 #631870
monochromatic
#121905 #2D3E0D #517018 #75A223 #99D330

Accessibility & contrast

On white

5.71
#517018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#517018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517018
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517018#FFFFFF#000000##FFFFFF
##5170181.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766805
Deuteranopia (green-blind)
#726621
Tritanopia (blue-blind)
#546B5F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #517018;
/* rgb */ color: rgb(81, 112, 24);
/* oklch */ color: oklch(50.3% 0.118 127.5);
Tailwind
colors: {
  custom: {
    50: '#85995c',
    500: '#517018',
    950: '#000000',
  },
}
SCSS
$custom: #517018;
$custom-light: #85995c;
$custom-dark: #000000;
JSON
{
  "hex": "#517018",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 81.136,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.50329,
    "c": 0.11826,
    "h": 127.5
  },
  "luminance": 0.13404
}

Semantic roles & 50–950 ramp

primary
#517018
secondary
#633EA5
accent
#40E87B
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #517018

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

Preview Lab → · Contrast checker → · Palette generator →

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