#400C4B#400C4B

#400C4B is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.0% C 0.115 H 319.9°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#400C4B
RGBrgb(64, 12, 75)
HSLhsl(290, 72%, 17%)
HSVhsv(290, 84%, 29%)
CMYKcmyk(14.7%, 84%, 0%, 70.6%)
CIE-LABlab(14.74, 34.09, -26.46)
CIE-LCHlch(14.74, 43.16, 322.18°)
OKLaboklab(28.01% 0.0881 -0.0742)
OKLCHoklch(28.01% 0.115 319.9)
XYZxyz(3.5157, 1.8611, 6.8293)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C4B #174B0C
analogous
#210C4B #400C4B #4B0C37
triadic
#400C4B #4B400C #0C4B40
tetradic
#400C4B #4B210C #174B0C #0C374B
square
#400C4B #4B210C #174B0C #0C374B
split-complementary
#400C4B #374B0C #0C4B21
monochromatic
#17041A #17041A #400C4B #6D1480 #9A1DB5

Accessibility & contrast

On white

15.30
#400C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#400C4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C4B
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C4B#FFFFFF#000000##FFFFFF
##400C4B1.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224D
Deuteranopia (green-blind)
#12274A
Tritanopia (blue-blind)
#40192B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #400c4b;
/* rgb */ color: rgb(64, 12, 75);
/* oklch */ color: oklch(28.0% 0.115 319.9);
Tailwind
colors: {
  custom: {
    50: '#78527e',
    500: '#400c4b',
    950: '#000000',
  },
}
SCSS
$custom: #400c4b;
$custom-light: #78527e;
$custom-dark: #000000;
JSON
{
  "hex": "#400c4b",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 75
  },
  "hsl": {
    "h": 289.524,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.28011,
    "c": 0.11518,
    "h": 319.9
  },
  "luminance": 0.01861
}

Semantic roles & 50–950 ramp

primary
#400C4B
secondary
#3C872C
accent
#EF3959
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#09020A
muted
#7B787C

Preview Lab

Preview with #400C4B

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

Preview Lab → · Contrast checker → · Palette generator →

#400C4B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva