#400E4C#400E4C

#400E4C is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.3% C 0.114 H 319.0°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#400E4C
RGBrgb(64, 14, 76)
HSLhsl(288, 69%, 18%)
HSVhsv(288, 82%, 30%)
CMYKcmyk(15.8%, 81.6%, 0%, 70.2%)
CIE-LABlab(15.09, 33.51, -26.58)
CIE-LCHlch(15.09, 42.78, 321.58°)
OKLaboklab(28.29% 0.0858 -0.0746)
OKLCHoklch(28.29% 0.114 319)
XYZxyz(3.5757, 1.9260, 7.0195)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E4C #1A4C0E
analogous
#210E4C #400E4C #4C0E39
triadic
#400E4C #4C400E #0E4C40
tetradic
#400E4C #4C210E #1A4C0E #0E394C
square
#400E4C #4C210E #1A4C0E #0E394C
split-complementary
#400E4C #394C0E #0E4C21
monochromatic
#16051A #16051A #400E4C #6C1880 #9721B3

Accessibility & contrast

On white

15.16
#400E4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400E4C
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E4C#FFFFFF#000000##FFFFFF
##400E4C1.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234E
Deuteranopia (green-blind)
#12274B
Tritanopia (blue-blind)
#401B2C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #400e4c;
/* rgb */ color: rgb(64, 14, 76);
/* oklch */ color: oklch(28.3% 0.114 319.0);
Tailwind
colors: {
  custom: {
    50: '#77537e',
    500: '#400e4c',
    950: '#000000',
  },
}
SCSS
$custom: #400e4c;
$custom-light: #77537e;
$custom-dark: #000000;
JSON
{
  "hex": "#400e4c",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 76
  },
  "hsl": {
    "h": 288.387,
    "s": 68.889,
    "l": 17.647
  },
  "oklch": {
    "l": 0.28286,
    "c": 0.11374,
    "h": 319
  },
  "luminance": 0.01926
}

Semantic roles & 50–950 ramp

primary
#400E4C
secondary
#40872F
accent
#EC3C5E
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #400E4C

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

Preview Lab → · Contrast checker → · Palette generator →

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