#400D4F#400D4F

#400D4F is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.4% C 0.118 H 317.1°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#400D4F
RGBrgb(64, 13, 79)
HSLhsl(286, 72%, 18%)
HSVhsv(286, 84%, 31%)
CMYKcmyk(19%, 83.5%, 0%, 69%)
CIE-LABlab(15.18, 34.58, -28.50)
CIE-LCHlch(15.18, 44.81, 320.50°)
OKLaboklab(28.42% 0.0865 -0.0802)
OKLCHoklch(28.42% 0.118 317.1)
XYZxyz(3.6694, 1.9425, 7.5773)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D4F #1C4F0D
analogous
#1F0D4F #400D4F #4F0D3D
triadic
#400D4F #4F400D #0D4F40
tetradic
#400D4F #4F1F0D #1C4F0D #0D3D4F
square
#400D4F #4F1F0D #1C4F0D #0D3D4F
split-complementary
#400D4F #3D4F0D #0D4F1F
monochromatic
#15041A #15041A #400D4F #6B1684 #951EB8

Accessibility & contrast

On white

15.13
#400D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400D4F
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D4F#FFFFFF#000000##FFFFFF
##400D4F1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#0E284E
Tritanopia (blue-blind)
#3F1B2E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #400d4f;
/* rgb */ color: rgb(64, 13, 79);
/* oklch */ color: oklch(28.4% 0.118 317.1);
Tailwind
colors: {
  custom: {
    50: '#785281',
    500: '#400d4f',
    950: '#000000',
  },
}
SCSS
$custom: #400d4f;
$custom-light: #785281;
$custom-dark: #000000;
JSON
{
  "hex": "#400d4f",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 286.364,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.28421,
    "c": 0.11796,
    "h": 317.1
  },
  "luminance": 0.01942
}

Semantic roles & 50–950 ramp

primary
#400D4F
secondary
#438A2E
accent
#EE3962
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#09020A
muted
#7B787C

Preview Lab

Preview with #400D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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