#517112#517112

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

Color values

HEX#517112
RGBrgb(81, 113, 18)
HSLhsl(80, 73%, 26%)
HSVhsv(80, 84%, 44%)
CMYKcmyk(28.3%, 0%, 84.1%, 55.7%)
CIE-LABlab(43.66, -25.86, 44.52)
CIE-LCHlch(43.66, 51.49, 120.15°)
OKLaboklab(50.56% -0.0747 0.0976)
OKLCHoklch(50.56% 0.123 127.4)
XYZxyz(9.4077, 13.6031, 2.7022)
Luminance0.1360 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517112 #321271
analogous
#716112 #517112 #217112
triadic
#517112 #125171 #711251
tetradic
#517112 #127161 #321271 #711221
square
#517112 #127161 #321271 #711221
split-complementary
#517112 #122171 #611271
monochromatic
#131A04 #2B3C0A #517112 #77A61A #9DDB23

Accessibility & contrast

On white

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

On black

3.72
#517112 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##517112#FFFFFF#000000##FFFFFF
##5171121.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776900
Deuteranopia (green-blind)
#73671D
Tritanopia (blue-blind)
#546B60
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #517112;
/* rgb */ color: rgb(81, 113, 18);
/* oklch */ color: oklch(50.6% 0.123 127.4);
Tailwind
colors: {
  custom: {
    50: '#859a5a',
    500: '#517112',
    950: '#000000',
  },
}
SCSS
$custom: #517112;
$custom-light: #859a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#517112",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 18
  },
  "hsl": {
    "h": 80.211,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.50557,
    "c": 0.12289,
    "h": 127.4
  },
  "luminance": 0.13603
}

Semantic roles & 50–950 ramp

primary
#517112
secondary
#5D37A8
accent
#39EF76
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #517112

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

Preview Lab → · Contrast checker → · Palette generator →

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