#400D4A#400D4A

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

Color values

HEX#400D4A
RGBrgb(64, 13, 74)
HSLhsl(290, 70%, 17%)
HSVhsv(290, 82%, 29%)
CMYKcmyk(13.5%, 82.4%, 0%, 71%)
CIE-LABlab(14.80, 33.48, -25.67)
CIE-LCHlch(14.80, 42.19, 322.52°)
OKLaboklab(28.03% 0.0871 -0.0719)
OKLCHoklch(28.03% 0.113 320.5)
XYZxyz(3.4942, 1.8724, 6.6546)
Luminance0.0187 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D4A #174A0D
analogous
#220D4A #400D4A #4A0D36
triadic
#400D4A #4A400D #0D4A40
tetradic
#400D4A #4A220D #174A0D #0D364A
square
#400D4A #4A220D #174A0D #0D364A
split-complementary
#400D4A #364A0D #0D4A22
monochromatic
#17051A #17051A #400D4A #6D167E #9A1FB2

Accessibility & contrast

On white

15.28
#400D4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400D4A
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D4A#FFFFFF#000000##FFFFFF
##400D4A1.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224C
Deuteranopia (green-blind)
#132749
Tritanopia (blue-blind)
#40192B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #400d4a;
/* rgb */ color: rgb(64, 13, 74);
/* oklch */ color: oklch(28.0% 0.113 320.5);
Tailwind
colors: {
  custom: {
    50: '#77527d',
    500: '#400d4a',
    950: '#000000',
  },
}
SCSS
$custom: #400d4a;
$custom-light: #77527d;
$custom-dark: #000000;
JSON
{
  "hex": "#400d4a",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 74
  },
  "hsl": {
    "h": 290.164,
    "s": 70.115,
    "l": 17.059
  },
  "oklch": {
    "l": 0.28031,
    "c": 0.113,
    "h": 320.5
  },
  "luminance": 0.01872
}

Semantic roles & 50–950 ramp

primary
#400D4A
secondary
#3C852E
accent
#ED3B58
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#090209
muted
#7B787B

Preview Lab

Preview with #400D4A

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

Preview Lab → · Contrast checker → · Palette generator →

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