#517312#517312

#517312 is a mid, vivid yellow-green. Relative luminance 0.141; OKLCH L 51.1% C 0.125 H 128.0°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#517312
RGBrgb(81, 115, 18)
HSLhsl(81, 73%, 26%)
HSVhsv(81, 84%, 45%)
CMYKcmyk(29.6%, 0%, 84.3%, 54.9%)
CIE-LABlab(44.31, -26.84, 45.11)
CIE-LCHlch(44.31, 52.49, 120.75°)
OKLaboklab(51.09% -0.0773 0.0988)
OKLCHoklch(51.09% 0.125 128)
XYZxyz(9.6333, 14.0542, 2.7773)
Luminance0.1405 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517312 #341273
analogous
#736412 #517312 #207312
triadic
#517312 #125173 #731251
tetradic
#517312 #127364 #341273 #731220
square
#517312 #127364 #341273 #731220
split-complementary
#517312 #122073 #641273
monochromatic
#131A04 #2C3E0A #517312 #76A81A #9BDD23

Accessibility & contrast

On white

5.51
#517312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#517312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517312
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517312#FFFFFF#000000##FFFFFF
##5173121.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#75681D
Tritanopia (blue-blind)
#546D61
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #517312;
/* rgb */ color: rgb(81, 115, 18);
/* oklch */ color: oklch(51.1% 0.125 128.0);
Tailwind
colors: {
  custom: {
    50: '#869b5a',
    500: '#517312',
    950: '#000000',
  },
}
SCSS
$custom: #517312;
$custom-light: #869b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#517312",
  "rgb": {
    "r": 81,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 81.031,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.51087,
    "c": 0.12549,
    "h": 128
  },
  "luminance": 0.14054
}

Semantic roles & 50–950 ramp

primary
#517312
secondary
#5F37AA
accent
#38F078
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #517312

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

Preview Lab → · Contrast checker → · Palette generator →

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