#400522#400522

#400522 is a very dark, moderate pink. Relative luminance 0.013; OKLCH L 24.8% C 0.092 H 356.7°. Best body text is #FFFFFF at 16.63:1 contrast (WCAG AA passes).

Color values

HEX#400522
RGBrgb(64, 5, 34)
HSLhsl(331, 86%, 14%)
HSVhsv(331, 92%, 25%)
CMYKcmyk(0%, 92.2%, 46.9%, 74.9%)
CIE-LABlab(11.38, 29.85, -2.17)
CIE-LCHlch(11.38, 29.93, 355.85°)
OKLaboklab(24.82% 0.0919 -0.0053)
OKLCHoklch(24.82% 0.092 356.7)
XYZxyz(2.4575, 1.3143, 1.6373)
Luminance0.0131 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400522 #054023
analogous
#40053F #400522 #400505
triadic
#400522 #224005 #052240
tetradic
#400522 #3F4005 #054023 #050540
square
#400522 #3F4005 #054023 #050540
split-complementary
#400522 #054005 #053F40
monochromatic
#1C020F #1C020F #400522 #790940 #B20E5E

Accessibility & contrast

On white

16.63
#400522 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#400522 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400522
16.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400522#FFFFFF#000000##FFFFFF
##4005221.0016.631.2616.63
#FFFFFF16.631.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121723
Deuteranopia (green-blind)
#232221
Tritanopia (blue-blind)
#460012
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #400522;
/* rgb */ color: rgb(64, 5, 34);
/* oklch */ color: oklch(24.8% 0.092 356.7);
Tailwind
colors: {
  custom: {
    50: '#784d5c',
    500: '#400522',
    950: '#000000',
  },
}
SCSS
$custom: #400522;
$custom-light: #784d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#400522",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 34
  },
  "hsl": {
    "h": 330.508,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24815,
    "c": 0.09209,
    "h": 356.7
  },
  "luminance": 0.01314
}

Semantic roles & 50–950 ramp

primary
#400522
secondary
#208151
accent
#FC962C
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090104
muted
#7B7779

Preview Lab

Preview with #400522

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

Preview Lab → · Contrast checker → · Palette generator →

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