#400C48#400C48

#400C48 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.8% C 0.112 H 321.9°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#400C48
RGBrgb(64, 12, 72)
HSLhsl(292, 71%, 16%)
HSVhsv(292, 83%, 28%)
CMYKcmyk(11.1%, 83.3%, 0%, 71.8%)
CIE-LABlab(14.52, 33.45, -24.74)
CIE-LCHlch(14.52, 41.61, 323.51°)
OKLaboklab(27.78% 0.0884 -0.0692)
OKLCHoklch(27.78% 0.112 321.9)
XYZxyz(3.4154, 1.8210, 6.3012)
Luminance0.0182 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C48 #14480C
analogous
#220C48 #400C48 #480C32
triadic
#400C48 #48400C #0C4840
tetradic
#400C48 #48220C #14480C #0C3248
square
#400C48 #48220C #14480C #0C3248
split-complementary
#400C48 #32480C #0C4822
monochromatic
#17041A #17041A #400C48 #6F157C #9D1DB1

Accessibility & contrast

On white

15.39
#400C48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#400C48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C48
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C48#FFFFFF#000000##FFFFFF
##400C481.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214A
Deuteranopia (green-blind)
#142747
Tritanopia (blue-blind)
#411829
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #400c48;
/* rgb */ color: rgb(64, 12, 72);
/* oklch */ color: oklch(27.8% 0.112 321.9);
Tailwind
colors: {
  custom: {
    50: '#77527b',
    500: '#400c48',
    950: '#000000',
  },
}
SCSS
$custom: #400c48;
$custom-light: #77527b;
$custom-dark: #000000;
JSON
{
  "hex": "#400c48",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 72
  },
  "hsl": {
    "h": 292,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.27782,
    "c": 0.11226,
    "h": 321.9
  },
  "luminance": 0.01821
}

Semantic roles & 50–950 ramp

primary
#400C48
secondary
#38842C
accent
#EE3A52
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#090209
muted
#7B787B

Preview Lab

Preview with #400C48

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

Preview Lab → · Contrast checker → · Palette generator →

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