#521217#521217

#521217 is a dark, moderate red. Relative luminance 0.023; OKLCH L 29.5% C 0.094 H 21.0°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#521217
RGBrgb(82, 18, 23)
HSLhsl(355, 64%, 20%)
HSVhsv(355, 78%, 32%)
CMYKcmyk(0%, 78%, 72%, 67.8%)
CIE-LABlab(16.94, 29.77, 14.22)
CIE-LCHlch(16.94, 32.99, 25.54°)
OKLaboklab(29.55% 0.0879 0.0337)
OKLCHoklch(29.55% 0.094 21)
XYZxyz(3.8510, 2.2889, 1.0495)
Luminance0.0229 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521217 #12524D
analogous
#521237 #521217 #522D12
triadic
#521217 #175212 #121752
tetradic
#521217 #375212 #12524D #2D1252
square
#521217 #375212 #12524D #2D1252
split-complementary
#521217 #12522D #123752
monochromatic
#190607 #200709 #521217 #841D25 #B62833

Accessibility & contrast

On white

14.41
#521217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#521217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521217
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521217#FFFFFF#000000##FFFFFF
##5212171.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242117
Deuteranopia (green-blind)
#342F15
Tritanopia (blue-blind)
#5B0114
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #521217;
/* rgb */ color: rgb(82, 18, 23);
/* oklch */ color: oklch(29.5% 0.094 21.0);
Tailwind
colors: {
  custom: {
    50: '#885553',
    500: '#521217',
    950: '#000000',
  },
}
SCSS
$custom: #521217;
$custom-light: #885553;
$custom-dark: #000000;
JSON
{
  "hex": "#521217",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 23
  },
  "hsl": {
    "h": 355.313,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29547,
    "c": 0.09411,
    "h": 21
  },
  "luminance": 0.02288
}

Semantic roles & 50–950 ramp

primary
#521217
secondary
#358B84
accent
#E7DA41
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0302
muted
#7D7878

Preview Lab

Preview with #521217

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

Preview Lab → · Contrast checker → · Palette generator →

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