#400526#400526

#400526 is a very dark, moderate pink. Relative luminance 0.013; OKLCH L 25.0% C 0.094 H 352.3°. Best body text is #FFFFFF at 16.57:1 contrast (WCAG AA passes).

Color values

HEX#400526
RGBrgb(64, 5, 38)
HSLhsl(326, 86%, 14%)
HSVhsv(326, 92%, 25%)
CMYKcmyk(0%, 92.2%, 40.6%, 74.9%)
CIE-LABlab(11.54, 30.34, -4.92)
CIE-LCHlch(11.54, 30.74, 350.79°)
OKLaboklab(24.99% 0.0933 -0.0127)
OKLCHoklch(24.99% 0.094 352.3)
XYZxyz(2.5186, 1.3388, 1.9591)
Luminance0.0134 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400526 #05401F
analogous
#3C0540 #400526 #400508
triadic
#400526 #264005 #052640
tetradic
#400526 #403C05 #05401F #050840
square
#400526 #403C05 #05401F #050840
split-complementary
#400526 #084005 #05403C
monochromatic
#1C0211 #1C0211 #400526 #790948 #B20E69

Accessibility & contrast

On white

16.57
#400526 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#400526 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400526
16.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400526#FFFFFF#000000##FFFFFF
##4005261.0016.571.2716.57
#FFFFFF16.571.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111827
Deuteranopia (green-blind)
#222225
Tritanopia (blue-blind)
#460114
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400526;
/* rgb */ color: rgb(64, 5, 38);
/* oklch */ color: oklch(25.0% 0.094 352.3);
Tailwind
colors: {
  custom: {
    50: '#784d60',
    500: '#400526',
    950: '#000000',
  },
}
SCSS
$custom: #400526;
$custom-light: #784d60;
$custom-dark: #000000;
JSON
{
  "hex": "#400526",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 38
  },
  "hsl": {
    "h": 326.441,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24993,
    "c": 0.09414,
    "h": 352.3
  },
  "luminance": 0.01338
}

Semantic roles & 50–950 ramp

primary
#400526
secondary
#20814B
accent
#FC882C
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090204
muted
#7B7879

Preview Lab

Preview with #400526

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

Preview Lab → · Contrast checker → · Palette generator →

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