#515215#515215

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

Color values

HEX#515215
RGBrgb(81, 82, 21)
HSLhsl(61, 59%, 20%)
HSVhsv(61, 74%, 32%)
CMYKcmyk(1.2%, 0%, 74.4%, 67.8%)
CIE-LABlab(33.64, -9.03, 33.92)
CIE-LCHlch(33.64, 35.10, 104.90°)
OKLaboklab(42.49% -0.0281 0.0758)
OKLCHoklch(42.49% 0.081 110.3)
XYZxyz(6.5462, 7.8382, 1.8774)
Luminance0.0784 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515215 #161552
analogous
#523515 #515215 #325215
triadic
#515215 #155152 #521551
tetradic
#515215 #155235 #161552 #521532
square
#515215 #155235 #161552 #521532
split-complementary
#515215 #153252 #351552
monochromatic
#181806 #212109 #515215 #818321 #B1B32E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##515215#FFFFFF#000000##FFFFFF
##5152151.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)
#594E0C
Deuteranopia (green-blind)
#5A5019
Tritanopia (blue-blind)
#574C46
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #515215;
/* rgb */ color: rgb(81, 82, 21);
/* oklch */ color: oklch(42.5% 0.081 110.3);
Tailwind
colors: {
  custom: {
    50: '#848257',
    500: '#515215',
    950: '#000000',
  },
}
SCSS
$custom: #515215;
$custom-light: #848257;
$custom-dark: #000000;
JSON
{
  "hex": "#515215",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 21
  },
  "hsl": {
    "h": 60.984,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.42486,
    "c": 0.08084,
    "h": 110.3
  },
  "luminance": 0.07838
}

Semantic roles & 50–950 ramp

primary
#515215
secondary
#3A398A
accent
#45E248
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #515215

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

Preview Lab → · Contrast checker → · Palette generator →

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