#400527#400527

#400527 is a dark, moderate pink. Relative luminance 0.013; OKLCH L 25.0% C 0.095 H 351.2°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#400527
RGBrgb(64, 5, 39)
HSLhsl(325, 86%, 14%)
HSVhsv(325, 92%, 25%)
CMYKcmyk(0%, 92.2%, 39.1%, 74.9%)
CIE-LABlab(11.59, 30.47, -5.60)
CIE-LCHlch(11.59, 30.98, 349.59°)
OKLaboklab(25.04% 0.0936 -0.0145)
OKLCHoklch(25.04% 0.095 351.2)
XYZxyz(2.5350, 1.3453, 2.0452)
Luminance0.0135 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400527 #05401E
analogous
#3B0540 #400527 #400509
triadic
#400527 #274005 #052740
tetradic
#400527 #403B05 #05401E #050940
square
#400527 #403B05 #05401E #050940
split-complementary
#400527 #094005 #05403B
monochromatic
#1C0211 #1C0211 #400527 #79094A #B20E6C

Accessibility & contrast

On white

16.55
#400527 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400527
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400527#FFFFFF#000000##FFFFFF
##4005271.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101828
Deuteranopia (green-blind)
#212226
Tritanopia (blue-blind)
#460115
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400527;
/* rgb */ color: rgb(64, 5, 39);
/* oklch */ color: oklch(25.0% 0.095 351.2);
Tailwind
colors: {
  custom: {
    50: '#784d61',
    500: '#400527',
    950: '#000000',
  },
}
SCSS
$custom: #400527;
$custom-light: #784d61;
$custom-dark: #000000;
JSON
{
  "hex": "#400527",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 39
  },
  "hsl": {
    "h": 325.424,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.2504,
    "c": 0.0947,
    "h": 351.2
  },
  "luminance": 0.01345
}

Semantic roles & 50–950 ramp

primary
#400527
secondary
#208149
accent
#FC842C
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090205
muted
#7B7879

Preview Lab

Preview with #400527

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

Preview Lab → · Contrast checker → · Palette generator →

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