#517818#517818

#517818 is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.4% C 0.129 H 129.8°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#517818
RGBrgb(81, 120, 24)
HSLhsl(84, 67%, 28%)
HSVhsv(84, 80%, 47%)
CMYKcmyk(32.5%, 0%, 80%, 52.9%)
CIE-LABlab(45.97, -28.94, 44.71)
CIE-LCHlch(45.97, 53.26, 122.91°)
OKLaboklab(52.45% -0.0825 0.099)
OKLCHoklch(52.45% 0.129 129.8)
XYZxyz(10.2746, 15.2479, 3.2658)
Luminance0.1525 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517818 #3F1878
analogous
#786F18 #517818 #217818
triadic
#517818 #185178 #781851
tetradic
#517818 #18786F #3F1878 #781821
square
#517818 #18786F #3F1878 #781821
split-complementary
#517818 #182178 #6F1878
monochromatic
#111A05 #2F450E #517818 #73AB22 #94D634

Accessibility & contrast

On white

5.19
#517818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#517818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517818
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517818#FFFFFF#000000##FFFFFF
##5178181.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F01
Deuteranopia (green-blind)
#796C22
Tritanopia (blue-blind)
#537266
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #517818;
/* rgb */ color: rgb(81, 120, 24);
/* oklch */ color: oklch(52.4% 0.129 129.8);
Tailwind
colors: {
  custom: {
    50: '#869f5d',
    500: '#517818',
    950: '#000000',
  },
}
SCSS
$custom: #517818;
$custom-light: #869f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#517818",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 84.375,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52449,
    "c": 0.12892,
    "h": 129.8
  },
  "luminance": 0.15248
}

Semantic roles & 50–950 ramp

primary
#517818
secondary
#6C3FAD
accent
#3EEA84
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #517818

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

Preview Lab → · Contrast checker → · Palette generator →

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