#400E48#400E48

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

Color values

HEX#400E48
RGBrgb(64, 14, 72)
HSLhsl(292, 67%, 17%)
HSVhsv(292, 81%, 28%)
CMYKcmyk(11.1%, 80.6%, 0%, 71.8%)
CIE-LABlab(14.80, 32.64, -24.29)
CIE-LCHlch(14.80, 40.69, 323.35°)
OKLaboklab(27.98% 0.0862 -0.0679)
OKLCHoklch(27.98% 0.11 321.8)
XYZxyz(3.4410, 1.8721, 6.3097)
Luminance0.0187 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E48 #16480E
analogous
#230E48 #400E48 #480E33
triadic
#400E48 #48400E #0E4840
tetradic
#400E48 #48230E #16480E #0E3348
square
#400E48 #48230E #16480E #0E3348
split-complementary
#400E48 #33480E #0E4823
monochromatic
#17051A #17051A #400E48 #6E187B #9B22AE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##400E48#FFFFFF#000000##FFFFFF
##400E481.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)
#00224A
Deuteranopia (green-blind)
#162747
Tritanopia (blue-blind)
#41192A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #400e48;
/* rgb */ color: rgb(64, 14, 72);
/* oklch */ color: oklch(28.0% 0.110 321.8);
Tailwind
colors: {
  custom: {
    50: '#77527b',
    500: '#400e48',
    950: '#000000',
  },
}
SCSS
$custom: #400e48;
$custom-light: #77527b;
$custom-dark: #000000;
JSON
{
  "hex": "#400e48",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 72
  },
  "hsl": {
    "h": 291.724,
    "s": 67.442,
    "l": 16.863
  },
  "oklch": {
    "l": 0.27983,
    "c": 0.10974,
    "h": 321.8
  },
  "luminance": 0.01872
}

Semantic roles & 50–950 ramp

primary
#400E48
secondary
#3B832F
accent
#EA3D55
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#090209
muted
#7B787B

Preview Lab

Preview with #400E48

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

Preview Lab → · Contrast checker → · Palette generator →

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