#400D4E#400D4E

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

Color values

HEX#400D4E
RGBrgb(64, 13, 78)
HSLhsl(287, 71%, 18%)
HSVhsv(287, 83%, 31%)
CMYKcmyk(17.9%, 83.3%, 0%, 69.4%)
CIE-LABlab(15.11, 34.36, -27.94)
CIE-LCHlch(15.11, 44.28, 320.88°)
OKLaboklab(28.34% 0.0866 -0.0786)
OKLCHoklch(28.34% 0.117 317.8)
XYZxyz(3.6332, 1.9281, 7.3870)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D4E #1B4E0D
analogous
#1F0D4E #400D4E #4E0D3B
triadic
#400D4E #4E400D #0D4E40
tetradic
#400D4E #4E1F0D #1B4E0D #0D3B4E
square
#400D4E #4E1F0D #1B4E0D #0D3B4E
split-complementary
#400D4E #3B4E0D #0D4E1F
monochromatic
#16041A #16041A #400D4E #6B1682 #961EB7

Accessibility & contrast

On white

15.16
#400D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#400D4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400D4E
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D4E#FFFFFF#000000##FFFFFF
##400D4E1.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#0F274D
Tritanopia (blue-blind)
#3F1B2D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #400d4e;
/* rgb */ color: rgb(64, 13, 78);
/* oklch */ color: oklch(28.3% 0.117 317.8);
Tailwind
colors: {
  custom: {
    50: '#785280',
    500: '#400d4e',
    950: '#000000',
  },
}
SCSS
$custom: #400d4e;
$custom-light: #785280;
$custom-dark: #000000;
JSON
{
  "hex": "#400d4e",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 78
  },
  "hsl": {
    "h": 287.077,
    "s": 71.429,
    "l": 17.843
  },
  "oklch": {
    "l": 0.28342,
    "c": 0.11697,
    "h": 317.8
  },
  "luminance": 0.01928
}

Semantic roles & 50–950 ramp

primary
#400D4E
secondary
#41892E
accent
#EE3A61
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#09020A
muted
#7B787C

Preview Lab

Preview with #400D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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