#400E4D#400E4D

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

Color values

HEX#400E4D
RGBrgb(64, 14, 77)
HSLhsl(288, 69%, 18%)
HSVhsv(288, 82%, 30%)
CMYKcmyk(16.9%, 81.8%, 0%, 69.8%)
CIE-LABlab(15.17, 33.73, -27.15)
CIE-LCHlch(15.17, 43.30, 321.17°)
OKLaboklab(28.36% 0.0857 -0.0763)
OKLCHoklch(28.36% 0.115 318.3)
XYZxyz(3.6108, 1.9401, 7.2040)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E4D #1B4D0E
analogous
#200E4D #400E4D #4D0E3A
triadic
#400E4D #4D400E #0E4D40
tetradic
#400E4D #4D200E #1B4D0E #0E3A4D
square
#400E4D #4D200E #1B4D0E #0E3A4D
split-complementary
#400E4D #3A4D0E #0E4D20
monochromatic
#16051A #16051A #400E4D #6B1781 #9621B5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##400E4D#FFFFFF#000000##FFFFFF
##400E4D1.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)
#00234F
Deuteranopia (green-blind)
#11284C
Tritanopia (blue-blind)
#401B2D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #400e4d;
/* rgb */ color: rgb(64, 14, 77);
/* oklch */ color: oklch(28.4% 0.115 318.3);
Tailwind
colors: {
  custom: {
    50: '#77537f',
    500: '#400e4d',
    950: '#000000',
  },
}
SCSS
$custom: #400e4d;
$custom-light: #77537f;
$custom-dark: #000000;
JSON
{
  "hex": "#400e4d",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 77
  },
  "hsl": {
    "h": 287.619,
    "s": 69.231,
    "l": 17.843
  },
  "oklch": {
    "l": 0.28363,
    "c": 0.11474,
    "h": 318.3
  },
  "luminance": 0.0194
}

Semantic roles & 50–950 ramp

primary
#400E4D
secondary
#41882F
accent
#EC3C60
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #400E4D

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

Preview Lab → · Contrast checker → · Palette generator →

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