#517118#517118

#517118 is a mid, moderate yellow-green. Relative luminance 0.136; OKLCH L 50.6% C 0.120 H 127.8°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#517118
RGBrgb(81, 113, 24)
HSLhsl(82, 65%, 27%)
HSVhsv(82, 79%, 44%)
CMYKcmyk(28.3%, 0%, 78.8%, 55.7%)
CIE-LABlab(43.69, -25.55, 42.54)
CIE-LCHlch(43.69, 49.62, 120.98°)
OKLaboklab(50.59% -0.0733 0.0945)
OKLCHoklch(50.59% 0.12 127.8)
XYZxyz(9.4633, 13.6253, 2.9953)
Luminance0.1363 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517118 #381871
analogous
#716518 #517118 #257118
triadic
#517118 #185171 #711851
tetradic
#517118 #187165 #381871 #711825
square
#517118 #187165 #381871 #711825
split-complementary
#517118 #182571 #651871
monochromatic
#121905 #2D3F0D #517118 #75A323 #99D330

Accessibility & contrast

On white

5.64
#517118 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#517118 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517118
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517118#FFFFFF#000000##FFFFFF
##5171181.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776904
Deuteranopia (green-blind)
#736721
Tritanopia (blue-blind)
#546C60
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #517118;
/* rgb */ color: rgb(81, 113, 24);
/* oklch */ color: oklch(50.6% 0.120 127.8);
Tailwind
colors: {
  custom: {
    50: '#859a5c',
    500: '#517118',
    950: '#000000',
  },
}
SCSS
$custom: #517118;
$custom-light: #859a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#517118",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 24
  },
  "hsl": {
    "h": 81.573,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.50594,
    "c": 0.1196,
    "h": 127.8
  },
  "luminance": 0.13626
}

Semantic roles & 50–950 ramp

primary
#517118
secondary
#643EA6
accent
#40E87C
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #517118

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

Preview Lab → · Contrast checker → · Palette generator →

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