#517F12#517F12

#517F12 is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.3% C 0.141 H 131.1°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#517F12
RGBrgb(81, 127, 18)
HSLhsl(85, 75%, 28%)
HSVhsv(85, 86%, 50%)
CMYKcmyk(36.2%, 0%, 85.8%, 50.2%)
CIE-LABlab(48.22, -32.49, 48.61)
CIE-LCHlch(48.22, 58.46, 123.76°)
OKLaboklab(54.28% -0.0925 0.1063)
OKLCHoklch(54.28% 0.141 131.1)
XYZxyz(11.0918, 16.9713, 3.2635)
Luminance0.1697 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517F12 #40127F
analogous
#7F7612 #517F12 #1B7F12
triadic
#517F12 #12517F #7F1251
tetradic
#517F12 #127F76 #40127F #7F121B
square
#517F12 #127F76 #40127F #7F121B
split-complementary
#517F12 #121B7F #76127F
monochromatic
#111B04 #2F490A #517F12 #73B51A #94E12B

Accessibility & contrast

On white

4.78
#517F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#517F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #517F12
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517F12#FFFFFF#000000##FFFFFF
##517F121.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#7F711F
Tritanopia (blue-blind)
#53796C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #517f12;
/* rgb */ color: rgb(81, 127, 18);
/* oklch */ color: oklch(54.3% 0.141 131.1);
Tailwind
colors: {
  custom: {
    50: '#87a45c',
    500: '#517f12',
    950: '#000000',
  },
}
SCSS
$custom: #517f12;
$custom-light: #87a45c;
$custom-dark: #000000;
JSON
{
  "hex": "#517f12",
  "rgb": {
    "r": 81,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 85.321,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.54277,
    "c": 0.14091,
    "h": 131.1
  },
  "luminance": 0.16972
}

Semantic roles & 50–950 ramp

primary
#517F12
secondary
#6D38B5
accent
#36F285
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0C0F04
muted
#7D7F79

Preview Lab

Preview with #517F12

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

Preview Lab → · Contrast checker → · Palette generator →

#517F12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva