#517512#517512

#517512 is a mid, vivid yellow-green. Relative luminance 0.145; OKLCH L 51.6% C 0.128 H 128.6°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#517512
RGBrgb(81, 117, 18)
HSLhsl(82, 73%, 26%)
HSVhsv(82, 85%, 46%)
CMYKcmyk(30.8%, 0%, 84.6%, 54.1%)
CIE-LABlab(44.96, -27.81, 45.70)
CIE-LCHlch(44.96, 53.49, 121.32°)
OKLaboklab(51.62% -0.0799 0.1001)
OKLCHoklch(51.62% 0.128 128.6)
XYZxyz(9.8638, 14.5153, 2.8542)
Luminance0.1452 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517512 #361275
analogous
#756812 #517512 #207512
triadic
#517512 #125175 #751251
tetradic
#517512 #127568 #361275 #751220
square
#517512 #127568 #361275 #751220
split-complementary
#517512 #122075 #681275
monochromatic
#121B04 #2C400A #517512 #76AA1A #9ADD24

Accessibility & contrast

On white

5.38
#517512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#517512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517512
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517512#FFFFFF#000000##FFFFFF
##5175121.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#766A1D
Tritanopia (blue-blind)
#546F63
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #517512;
/* rgb */ color: rgb(81, 117, 18);
/* oklch */ color: oklch(51.6% 0.128 128.6);
Tailwind
colors: {
  custom: {
    50: '#869d5a',
    500: '#517512',
    950: '#000000',
  },
}
SCSS
$custom: #517512;
$custom-light: #869d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#517512",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 18
  },
  "hsl": {
    "h": 81.818,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.51618,
    "c": 0.12809,
    "h": 128.6
  },
  "luminance": 0.14516
}

Semantic roles & 50–950 ramp

primary
#517512
secondary
#6237AC
accent
#38F07B
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #517512

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

Preview Lab → · Contrast checker → · Palette generator →

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