#521222#521222

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

Color values

HEX#521222
RGBrgb(82, 18, 34)
HSLhsl(345, 64%, 20%)
HSVhsv(345, 78%, 32%)
CMYKcmyk(0%, 78%, 58.5%, 67.8%)
CIE-LABlab(17.19, 30.64, 6.70)
CIE-LCHlch(17.19, 31.36, 12.34°)
OKLaboklab(29.82% 0.0929 0.017)
OKLCHoklch(29.82% 0.094 10.4)
XYZxyz(3.9851, 2.3425, 1.7554)
Luminance0.0234 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521222 #125242
analogous
#521242 #521222 #522212
triadic
#521222 #225212 #122252
tetradic
#521222 #425212 #125242 #221252
square
#521222 #425212 #125242 #221252
split-complementary
#521222 #125222 #124252
monochromatic
#19060A #20070D #521222 #841D37 #B6284C

Accessibility & contrast

On white

14.30
#521222 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#521222 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521222
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521222#FFFFFF#000000##FFFFFF
##5212221.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222222
Deuteranopia (green-blind)
#332F20
Tritanopia (blue-blind)
#5A0519
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #521222;
/* rgb */ color: rgb(82, 18, 34);
/* oklch */ color: oklch(29.8% 0.094 10.4);
Tailwind
colors: {
  custom: {
    50: '#87565c',
    500: '#521222',
    950: '#000000',
  },
}
SCSS
$custom: #521222;
$custom-light: #87565c;
$custom-dark: #000000;
JSON
{
  "hex": "#521222",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 34
  },
  "hsl": {
    "h": 345,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.2982,
    "c": 0.09443,
    "h": 10.4
  },
  "luminance": 0.02342
}

Semantic roles & 50–950 ramp

primary
#521222
secondary
#358B75
accent
#E7BD41
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0304
muted
#7D7879

Preview Lab

Preview with #521222

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

Preview Lab → · Contrast checker → · Palette generator →

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