#400D4D#400D4D

#400D4D is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.3% C 0.116 H 318.4°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#400D4D
RGBrgb(64, 13, 77)
HSLhsl(288, 71%, 18%)
HSVhsv(288, 83%, 30%)
CMYKcmyk(16.9%, 83.1%, 0%, 69.8%)
CIE-LABlab(15.03, 34.14, -27.38)
CIE-LCHlch(15.03, 43.76, 321.27°)
OKLaboklab(28.26% 0.0868 -0.0769)
OKLCHoklch(28.26% 0.116 318.4)
XYZxyz(3.5976, 1.9138, 7.1996)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D4D #1A4D0D
analogous
#200D4D #400D4D #4D0D3A
triadic
#400D4D #4D400D #0D4D40
tetradic
#400D4D #4D200D #1A4D0D #0D3A4D
square
#400D4D #4D200D #1A4D0D #0D3A4D
split-complementary
#400D4D #3A4D0D #0D4D20
monochromatic
#16041A #16041A #400D4D #6C1681 #971FB6

Accessibility & contrast

On white

15.19
#400D4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#400D4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400D4D
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D4D#FFFFFF#000000##FFFFFF
##400D4D1.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224F
Deuteranopia (green-blind)
#10274C
Tritanopia (blue-blind)
#401B2C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #400d4d;
/* rgb */ color: rgb(64, 13, 77);
/* oklch */ color: oklch(28.3% 0.116 318.4);
Tailwind
colors: {
  custom: {
    50: '#78527f',
    500: '#400d4d',
    950: '#000000',
  },
}
SCSS
$custom: #400d4d;
$custom-light: #78527f;
$custom-dark: #000000;
JSON
{
  "hex": "#400d4d",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 77
  },
  "hsl": {
    "h": 287.813,
    "s": 71.111,
    "l": 17.647
  },
  "oklch": {
    "l": 0.28263,
    "c": 0.11597,
    "h": 318.4
  },
  "luminance": 0.01914
}

Semantic roles & 50–950 ramp

primary
#400D4D
secondary
#40882E
accent
#EE3A5E
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#09020A
muted
#7B787C

Preview Lab

Preview with #400D4D

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

Preview Lab → · Contrast checker → · Palette generator →

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