#515216#515216

#515216 is a dark, moderate yellow. Relative luminance 0.078; OKLCH L 42.5% C 0.080 H 110.3°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#515216
RGBrgb(81, 82, 22)
HSLhsl(61, 58%, 20%)
HSVhsv(61, 73%, 32%)
CMYKcmyk(1.2%, 0%, 73.2%, 67.8%)
CIE-LABlab(33.65, -8.96, 33.48)
CIE-LCHlch(33.65, 34.66, 104.99°)
OKLaboklab(42.5% -0.0278 0.0751)
OKLCHoklch(42.5% 0.08 110.3)
XYZxyz(6.5557, 7.8420, 1.9272)
Luminance0.0784 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515216 #171652
analogous
#523516 #515216 #335216
triadic
#515216 #165152 #521651
tetradic
#515216 #165235 #171652 #521633
square
#515216 #165235 #171652 #521633
split-complementary
#515216 #163352 #351652
monochromatic
#181806 #212209 #515216 #818223 #B0B330

Accessibility & contrast

On white

8.18
#515216 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#515216 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #515216
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515216#FFFFFF#000000##FFFFFF
##5152161.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E0D
Deuteranopia (green-blind)
#59501A
Tritanopia (blue-blind)
#574D46
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #515216;
/* rgb */ color: rgb(81, 82, 22);
/* oklch */ color: oklch(42.5% 0.080 110.3);
Tailwind
colors: {
  custom: {
    50: '#848257',
    500: '#515216',
    950: '#000000',
  },
}
SCSS
$custom: #515216;
$custom-light: #848257;
$custom-dark: #000000;
JSON
{
  "hex": "#515216",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 22
  },
  "hsl": {
    "h": 61,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.42495,
    "c": 0.08005,
    "h": 110.3
  },
  "luminance": 0.07842
}

Semantic roles & 50–950 ramp

primary
#515216
secondary
#3C3A89
accent
#47E149
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #515216

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

Preview Lab → · Contrast checker → · Palette generator →

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