#400E4A#400E4A

#400E4A is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.1% C 0.112 H 320.4°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#400E4A
RGBrgb(64, 14, 74)
HSLhsl(290, 68%, 17%)
HSVhsv(290, 81%, 29%)
CMYKcmyk(13.5%, 81.1%, 0%, 71%)
CIE-LABlab(14.95, 33.07, -25.44)
CIE-LCHlch(14.95, 41.73, 322.43°)
OKLaboklab(28.13% 0.086 -0.0713)
OKLCHoklch(28.13% 0.112 320.4)
XYZxyz(3.5073, 1.8987, 6.6590)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E4A #184A0E
analogous
#220E4A #400E4A #4A0E36
triadic
#400E4A #4A400E #0E4A40
tetradic
#400E4A #4A220E #184A0E #0E364A
square
#400E4A #4A220E #184A0E #0E364A
split-complementary
#400E4A #364A0E #0E4A22
monochromatic
#16051A #16051A #400E4A #6D187D #9921B1

Accessibility & contrast

On white

15.22
#400E4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400E4A
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E4A#FFFFFF#000000##FFFFFF
##400E4A1.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224C
Deuteranopia (green-blind)
#142749
Tritanopia (blue-blind)
#401A2B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #400e4a;
/* rgb */ color: rgb(64, 14, 74);
/* oklch */ color: oklch(28.1% 0.112 320.4);
Tailwind
colors: {
  custom: {
    50: '#77537d',
    500: '#400e4a',
    950: '#000000',
  },
}
SCSS
$custom: #400e4a;
$custom-light: #77537d;
$custom-dark: #000000;
JSON
{
  "hex": "#400e4a",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 74
  },
  "hsl": {
    "h": 290,
    "s": 68.182,
    "l": 17.255
  },
  "oklch": {
    "l": 0.28133,
    "c": 0.11173,
    "h": 320.4
  },
  "luminance": 0.01898
}

Semantic roles & 50–950 ramp

primary
#400E4A
secondary
#3D852F
accent
#EB3D5A
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#090209
muted
#7B787B

Preview Lab

Preview with #400E4A

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

Preview Lab → · Contrast checker → · Palette generator →

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