#400528#400528

#400528 is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.1% C 0.095 H 350.1°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#400528
RGBrgb(64, 5, 40)
HSLhsl(324, 86%, 14%)
HSVhsv(324, 92%, 25%)
CMYKcmyk(0%, 92.2%, 37.5%, 74.9%)
CIE-LABlab(11.63, 30.60, -6.28)
CIE-LCHlch(11.63, 31.24, 348.41°)
OKLaboklab(25.09% 0.0939 -0.0164)
OKLCHoklch(25.09% 0.095 350.1)
XYZxyz(2.5518, 1.3520, 2.1337)
Luminance0.0135 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400528 #05401D
analogous
#3A0540 #400528 #40050A
triadic
#400528 #284005 #052840
tetradic
#400528 #403A05 #05401D #050A40
square
#400528 #403A05 #05401D #050A40
split-complementary
#400528 #0A4005 #05403A
monochromatic
#1C0212 #1C0212 #400528 #79094B #B20E6F

Accessibility & contrast

On white

16.53
#400528 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400528
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400528#FFFFFF#000000##FFFFFF
##4005281.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101829
Deuteranopia (green-blind)
#212227
Tritanopia (blue-blind)
#460215
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400528;
/* rgb */ color: rgb(64, 5, 40);
/* oklch */ color: oklch(25.1% 0.095 350.1);
Tailwind
colors: {
  custom: {
    50: '#784d61',
    500: '#400528',
    950: '#000000',
  },
}
SCSS
$custom: #400528;
$custom-light: #784d61;
$custom-dark: #000000;
JSON
{
  "hex": "#400528",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 40
  },
  "hsl": {
    "h": 324.407,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.25088,
    "c": 0.09528,
    "h": 350.1
  },
  "luminance": 0.01352
}

Semantic roles & 50–950 ramp

primary
#400528
secondary
#208147
accent
#FC812C
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090205
muted
#7B7879

Preview Lab

Preview with #400528

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

Preview Lab → · Contrast checker → · Palette generator →

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