#400C4A#400C4A

#400C4A is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.9% C 0.114 H 320.5°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#400C4A
RGBrgb(64, 12, 74)
HSLhsl(290, 72%, 17%)
HSVhsv(290, 84%, 29%)
CMYKcmyk(13.5%, 83.8%, 0%, 71%)
CIE-LABlab(14.67, 33.88, -25.89)
CIE-LCHlch(14.67, 42.64, 322.61°)
OKLaboklab(27.93% 0.0882 -0.0726)
OKLCHoklch(27.93% 0.114 320.5)
XYZxyz(3.4817, 1.8475, 6.6505)
Luminance0.0185 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C4A #164A0C
analogous
#210C4A #400C4A #4A0C35
triadic
#400C4A #4A400C #0C4A40
tetradic
#400C4A #4A210C #164A0C #0C354A
square
#400C4A #4A210C #164A0C #0C354A
split-complementary
#400C4A #354A0C #0C4A21
monochromatic
#17041A #17041A #400C4A #6E157F #9B1DB3

Accessibility & contrast

On white

15.34
#400C4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C4A
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C4A#FFFFFF#000000##FFFFFF
##400C4A1.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214C
Deuteranopia (green-blind)
#132749
Tritanopia (blue-blind)
#40192A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #400c4a;
/* rgb */ color: rgb(64, 12, 74);
/* oklch */ color: oklch(27.9% 0.114 320.5);
Tailwind
colors: {
  custom: {
    50: '#77527d',
    500: '#400c4a',
    950: '#000000',
  },
}
SCSS
$custom: #400c4a;
$custom-light: #77527d;
$custom-dark: #000000;
JSON
{
  "hex": "#400c4a",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 74
  },
  "hsl": {
    "h": 290.323,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.27934,
    "c": 0.1142,
    "h": 320.5
  },
  "luminance": 0.01847
}

Semantic roles & 50–950 ramp

primary
#400C4A
secondary
#3B862C
accent
#EF3956
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#090209
muted
#7B787B

Preview Lab

Preview with #400C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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