#516915#516915

#516915 is a mid, moderate yellow-green. Relative luminance 0.119; OKLCH L 48.5% C 0.111 H 124.7°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#516915
RGBrgb(81, 105, 21)
HSLhsl(77, 67%, 25%)
HSVhsv(77, 80%, 41%)
CMYKcmyk(22.9%, 0%, 80%, 58.8%)
CIE-LABlab(41.07, -21.68, 41.13)
CIE-LCHlch(41.07, 46.49, 117.80°)
OKLaboklab(48.46% -0.0631 0.091)
OKLCHoklch(48.46% 0.111 124.7)
XYZxyz(8.5804, 11.9065, 2.5555)
Luminance0.1191 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516915 #2D1569
analogous
#695715 #516915 #276915
triadic
#516915 #155169 #691551
tetradic
#516915 #156957 #2D1569 #691527
square
#516915 #156957 #2D1569 #691527
split-complementary
#516915 #152769 #571569
monochromatic
#141A05 #2A360B #516915 #789C1F #A0CF29

Accessibility & contrast

On white

6.21
#516915 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#516915 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516915
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516915#FFFFFF#000000##FFFFFF
##5169151.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6203
Deuteranopia (green-blind)
#6C611D
Tritanopia (blue-blind)
#556459
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #516915;
/* rgb */ color: rgb(81, 105, 21);
/* oklch */ color: oklch(48.5% 0.111 124.7);
Tailwind
colors: {
  custom: {
    50: '#85945a',
    500: '#516915',
    950: '#000000',
  },
}
SCSS
$custom: #516915;
$custom-light: #85945a;
$custom-dark: #000000;
JSON
{
  "hex": "#516915",
  "rgb": {
    "r": 81,
    "g": 105,
    "b": 21
  },
  "hsl": {
    "h": 77.143,
    "s": 66.667,
    "l": 24.706
  },
  "oklch": {
    "l": 0.4846,
    "c": 0.1107,
    "h": 124.7
  },
  "luminance": 0.11907
}

Semantic roles & 50–950 ramp

primary
#516915
secondary
#573AA0
accent
#3EEA6F
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #516915

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

Preview Lab → · Contrast checker → · Palette generator →

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