#401221#401221

#401221 is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.3% C 0.073 H 3.4°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#401221
RGBrgb(64, 18, 33)
HSLhsl(340, 56%, 16%)
HSVhsv(340, 72%, 25%)
CMYKcmyk(0%, 71.9%, 48.4%, 74.9%)
CIE-LABlab(13.43, 23.91, 1.58)
CIE-LCHlch(13.43, 23.97, 3.79°)
OKLaboklab(26.32% 0.073 0.0044)
OKLCHoklch(26.32% 0.073 3.4)
XYZxyz(2.6054, 1.6327, 1.6165)
Luminance0.0163 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401221 #124031
analogous
#401238 #401221 #401A12
triadic
#401221 #214012 #122140
tetradic
#401221 #384012 #124031 #1A1240
square
#401221 #384012 #124031 #1A1240
split-complementary
#401221 #12401A #123840
monochromatic
#18070C #18070C #401221 #701F3A #A02D52

Accessibility & contrast

On white

15.83
#401221 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#401221 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401221
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401221#FFFFFF#000000##FFFFFF
##4012211.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B1D21
Deuteranopia (green-blind)
#272620
Tritanopia (blue-blind)
#460D18
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #401221;
/* rgb */ color: rgb(64, 18, 33);
/* oklch */ color: oklch(26.3% 0.073 3.4);
Tailwind
colors: {
  custom: {
    50: '#78535c',
    500: '#401221',
    950: '#000000',
  },
}
SCSS
$custom: #401221;
$custom-light: #78535c;
$custom-dark: #000000;
JSON
{
  "hex": "#401221",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 33
  },
  "hsl": {
    "h": 340.435,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.26316,
    "c": 0.07313,
    "h": 3.4
  },
  "luminance": 0.01632
}

Semantic roles & 50–950 ramp

primary
#401221
secondary
#357963
accent
#DFAE48
background
#F7F4F5
surface
#EDE7E9
border
#C8C3C5
text
#090204
muted
#7B7879

Preview Lab

Preview with #401221

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

Preview Lab → · Contrast checker → · Palette generator →

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