#517918#517918

#517918 is a mid, vivid yellow-green. Relative luminance 0.155; OKLCH L 52.7% C 0.130 H 130.1°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#517918
RGBrgb(81, 121, 24)
HSLhsl(85, 67%, 28%)
HSVhsv(85, 80%, 47%)
CMYKcmyk(33.1%, 0%, 80.2%, 52.5%)
CIE-LABlab(46.30, -29.41, 45.02)
CIE-LCHlch(46.30, 53.77, 123.16°)
OKLaboklab(52.72% -0.0838 0.0997)
OKLCHoklch(52.72% 0.13 130.1)
XYZxyz(10.3955, 15.4897, 3.3061)
Luminance0.1549 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517918 #401879
analogous
#797018 #517918 #207918
triadic
#517918 #185179 #791851
tetradic
#517918 #187970 #401879 #791820
square
#517918 #187970 #401879 #791820
split-complementary
#517918 #182079 #701879
monochromatic
#111A05 #2F460E #517918 #73AC22 #94D735

Accessibility & contrast

On white

5.12
#517918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#517918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517918
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517918#FFFFFF#000000##FFFFFF
##5179181.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7000
Deuteranopia (green-blind)
#796D22
Tritanopia (blue-blind)
#537367
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #517918;
/* rgb */ color: rgb(81, 121, 24);
/* oklch */ color: oklch(52.7% 0.130 130.1);
Tailwind
colors: {
  custom: {
    50: '#86a05e',
    500: '#517918',
    950: '#000000',
  },
}
SCSS
$custom: #517918;
$custom-light: #86a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#517918",
  "rgb": {
    "r": 81,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 84.742,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52715,
    "c": 0.13024,
    "h": 130.1
  },
  "luminance": 0.1549
}

Semantic roles & 50–950 ramp

primary
#517918
secondary
#6D3FAE
accent
#3EEA85
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #517918

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

Preview Lab → · Contrast checker → · Palette generator →

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