#400A4A#400A4A

#400A4A is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.8% C 0.116 H 320.7°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#400A4A
RGBrgb(64, 10, 74)
HSLhsl(291, 76%, 16%)
HSVhsv(291, 86%, 29%)
CMYKcmyk(13.5%, 86.5%, 0%, 71%)
CIE-LABlab(14.41, 34.61, -26.30)
CIE-LCHlch(14.41, 43.47, 322.77°)
OKLaboklab(27.75% 0.0901 -0.0738)
OKLCHoklch(27.75% 0.116 320.7)
XYZxyz(3.4588, 1.8017, 6.6428)
Luminance0.0180 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400A4A #144A0A
analogous
#200A4A #400A4A #4A0A34
triadic
#400A4A #4A400A #0A4A40
tetradic
#400A4A #4A200A #144A0A #0A344A
square
#400A4A #4A200A #144A0A #0A344A
split-complementary
#400A4A #344A0A #0A4A20
monochromatic
#17041B #17041B #400A4A #6F1180 #9D19B6

Accessibility & contrast

On white

15.44
#400A4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#400A4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400A4A
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400A4A#FFFFFF#000000##FFFFFF
##400A4A1.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214C
Deuteranopia (green-blind)
#122649
Tritanopia (blue-blind)
#40182A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400a4a;
/* rgb */ color: rgb(64, 10, 74);
/* oklch */ color: oklch(27.8% 0.116 320.7);
Tailwind
colors: {
  custom: {
    50: '#78517d',
    500: '#400a4a',
    950: '#000000',
  },
}
SCSS
$custom: #400a4a;
$custom-light: #78517d;
$custom-dark: #000000;
JSON
{
  "hex": "#400a4a",
  "rgb": {
    "r": 64,
    "g": 10,
    "b": 74
  },
  "hsl": {
    "h": 290.625,
    "s": 76.19,
    "l": 16.471
  },
  "oklch": {
    "l": 0.27753,
    "c": 0.11647,
    "h": 320.7
  },
  "luminance": 0.01801
}

Semantic roles & 50–950 ramp

primary
#400A4A
secondary
#388729
accent
#F33553
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#090209
muted
#7B787B

Preview Lab

Preview with #400A4A

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

Preview Lab → · Contrast checker → · Palette generator →

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