#400C44#400C44

#400C44 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.5% C 0.108 H 324.9°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#400C44
RGBrgb(64, 12, 68)
HSLhsl(296, 70%, 16%)
HSVhsv(296, 82%, 27%)
CMYKcmyk(5.9%, 82.4%, 0%, 73.3%)
CIE-LABlab(14.23, 32.62, -22.41)
CIE-LCHlch(14.23, 39.57, 325.51°)
OKLaboklab(27.49% 0.0887 -0.0624)
OKLCHoklch(27.49% 0.108 324.9)
XYZxyz(3.2891, 1.7705, 5.6362)
Luminance0.0177 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C44 #10440C
analogous
#240C44 #400C44 #440C2C
triadic
#400C44 #44400C #0C4440
tetradic
#400C44 #44240C #10440C #0C2C44
square
#400C44 #44240C #10440C #0C2C44
split-complementary
#400C44 #2C440C #0C4424
monochromatic
#18051A #18051A #400C44 #711578 #A21EAC

Accessibility & contrast

On white

15.51
#400C44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#400C44 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C44
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C44#FFFFFF#000000##FFFFFF
##400C441.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002046
Deuteranopia (green-blind)
#172643
Tritanopia (blue-blind)
#421627
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400c44;
/* rgb */ color: rgb(64, 12, 68);
/* oklch */ color: oklch(27.5% 0.108 324.9);
Tailwind
colors: {
  custom: {
    50: '#775178',
    500: '#400c44',
    950: '#000000',
  },
}
SCSS
$custom: #400c44;
$custom-light: #775178;
$custom-dark: #000000;
JSON
{
  "hex": "#400c44",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 68
  },
  "hsl": {
    "h": 295.714,
    "s": 70,
    "l": 15.686
  },
  "oklch": {
    "l": 0.27488,
    "c": 0.10843,
    "h": 324.9
  },
  "luminance": 0.0177
}

Semantic roles & 50–950 ramp

primary
#400C44
secondary
#32802C
accent
#ED3B48
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #400C44

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

Preview Lab → · Contrast checker → · Palette generator →

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