#521212#521212

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

Color values

HEX#521212
RGBrgb(82, 18, 18)
HSLhsl(0, 64%, 20%)
HSVhsv(0, 78%, 32%)
CMYKcmyk(0%, 78%, 78%, 67.8%)
CIE-LABlab(16.85, 29.47, 17.46)
CIE-LCHlch(16.85, 34.25, 30.65°)
OKLaboklab(29.45% 0.0857 0.0402)
OKLCHoklch(29.45% 0.095 25.1)
XYZxyz(3.8056, 2.2707, 0.8101)
Luminance0.0227 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521212 #125252
analogous
#521232 #521212 #523212
triadic
#521212 #125212 #121252
tetradic
#521212 #325212 #125252 #321252
square
#521212 #325212 #125252 #321252
split-complementary
#521212 #125232 #123252
monochromatic
#190606 #200707 #521212 #841D1D #B62828

Accessibility & contrast

On white

14.44
#521212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#521212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521212
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521212#FFFFFF#000000##FFFFFF
##5212121.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242111
Deuteranopia (green-blind)
#342F10
Tritanopia (blue-blind)
#5B0013
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #521212;
/* rgb */ color: rgb(82, 18, 18);
/* oklch */ color: oklch(29.5% 0.095 25.1);
Tailwind
colors: {
  custom: {
    50: '#885550',
    500: '#521212',
    950: '#000000',
  },
}
SCSS
$custom: #521212;
$custom-light: #885550;
$custom-dark: #000000;
JSON
{
  "hex": "#521212",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 18
  },
  "hsl": {
    "h": 0,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29454,
    "c": 0.09468,
    "h": 25.1
  },
  "luminance": 0.0227
}

Semantic roles & 50–950 ramp

primary
#521212
secondary
#358B8B
accent
#E7E741
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0302
muted
#7D7878

Preview Lab

Preview with #521212

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

Preview Lab → · Contrast checker → · Palette generator →

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