#400C46#400C46

#400C46 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.6% C 0.110 H 323.4°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#400C46
RGBrgb(64, 12, 70)
HSLhsl(294, 71%, 16%)
HSVhsv(294, 83%, 27%)
CMYKcmyk(8.6%, 82.9%, 0%, 72.5%)
CIE-LABlab(14.37, 33.03, -23.58)
CIE-LCHlch(14.37, 40.59, 324.48°)
OKLaboklab(27.63% 0.0886 -0.0658)
OKLCHoklch(27.63% 0.11 323.4)
XYZxyz(3.3512, 1.7953, 5.9632)
Luminance0.0180 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C46 #12460C
analogous
#230C46 #400C46 #460C2F
triadic
#400C46 #46400C #0C4640
tetradic
#400C46 #46230C #12460C #0C2F46
square
#400C46 #46230C #12460C #0C2F46
split-complementary
#400C46 #2F460C #0C4623
monochromatic
#18041A #18041A #400C46 #70157A #A01EAE

Accessibility & contrast

On white

15.45
#400C46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C46
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C46#FFFFFF#000000##FFFFFF
##400C461.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002148
Deuteranopia (green-blind)
#162645
Tritanopia (blue-blind)
#411728
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400c46;
/* rgb */ color: rgb(64, 12, 70);
/* oklch */ color: oklch(27.6% 0.110 323.4);
Tailwind
colors: {
  custom: {
    50: '#77517a',
    500: '#400c46',
    950: '#000000',
  },
}
SCSS
$custom: #400c46;
$custom-light: #77517a;
$custom-dark: #000000;
JSON
{
  "hex": "#400c46",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 70
  },
  "hsl": {
    "h": 293.793,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27633,
    "c": 0.11034,
    "h": 323.4
  },
  "luminance": 0.01795
}

Semantic roles & 50–950 ramp

primary
#400C46
secondary
#35822C
accent
#ED3A4D
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #400C46

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

Preview Lab → · Contrast checker → · Palette generator →

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