#401220#401220

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

Color values

HEX#401220
RGBrgb(64, 18, 32)
HSLhsl(342, 56%, 16%)
HSVhsv(342, 72%, 25%)
CMYKcmyk(0%, 71.9%, 50%, 74.9%)
CIE-LABlab(13.39, 23.79, 2.27)
CIE-LCHlch(13.39, 23.90, 5.46°)
OKLaboklab(26.28% 0.0726 0.0061)
OKLCHoklch(26.28% 0.073 4.8)
XYZxyz(2.5916, 1.6272, 1.5438)
Luminance0.0163 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401220 #124032
analogous
#401237 #401220 #401B12
triadic
#401220 #204012 #122040
tetradic
#401220 #374012 #124032 #1B1240
square
#401220 #374012 #124032 #1B1240
split-complementary
#401220 #12401B #123740
monochromatic
#18070C #18070C #401220 #701F38 #A02D50

Accessibility & contrast

On white

15.84
#401220 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401220
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401220#FFFFFF#000000##FFFFFF
##4012201.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B1D20
Deuteranopia (green-blind)
#27261F
Tritanopia (blue-blind)
#460C17
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #401220;
/* rgb */ color: rgb(64, 18, 32);
/* oklch */ color: oklch(26.3% 0.073 4.8);
Tailwind
colors: {
  custom: {
    50: '#78535b',
    500: '#401220',
    950: '#000000',
  },
}
SCSS
$custom: #401220;
$custom-light: #78535b;
$custom-dark: #000000;
JSON
{
  "hex": "#401220",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 32
  },
  "hsl": {
    "h": 341.739,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.2628,
    "c": 0.07282,
    "h": 4.8
  },
  "luminance": 0.01627
}

Semantic roles & 50–950 ramp

primary
#401220
secondary
#357964
accent
#DFB148
background
#F7F4F5
surface
#EDE7E9
border
#C8C3C5
text
#090204
muted
#7B7879

Preview Lab

Preview with #401220

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

Preview Lab → · Contrast checker → · Palette generator →

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