#400C49#400C49

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

Color values

HEX#400C49
RGBrgb(64, 12, 73)
HSLhsl(291, 72%, 17%)
HSVhsv(291, 84%, 29%)
CMYKcmyk(12.3%, 83.6%, 0%, 71.4%)
CIE-LABlab(14.59, 33.66, -25.32)
CIE-LCHlch(14.59, 42.12, 323.05°)
OKLaboklab(27.86% 0.0883 -0.0709)
OKLCHoklch(27.86% 0.113 321.2)
XYZxyz(3.4483, 1.8342, 6.4744)
Luminance0.0183 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C49 #15490C
analogous
#220C49 #400C49 #490C34
triadic
#400C49 #49400C #0C4940
tetradic
#400C49 #49220C #15490C #0C3449
square
#400C49 #49220C #15490C #0C3449
split-complementary
#400C49 #34490C #0C4922
monochromatic
#17041A #17041A #400C49 #6E157E #9C1DB2

Accessibility & contrast

On white

15.36
#400C49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C49
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C49#FFFFFF#000000##FFFFFF
##400C491.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214B
Deuteranopia (green-blind)
#142748
Tritanopia (blue-blind)
#41182A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #400c49;
/* rgb */ color: rgb(64, 12, 73);
/* oklch */ color: oklch(27.9% 0.113 321.2);
Tailwind
colors: {
  custom: {
    50: '#77527c',
    500: '#400c49',
    950: '#000000',
  },
}
SCSS
$custom: #400c49;
$custom-light: #77527c;
$custom-dark: #000000;
JSON
{
  "hex": "#400c49",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 73
  },
  "hsl": {
    "h": 291.148,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.27858,
    "c": 0.11323,
    "h": 321.2
  },
  "luminance": 0.01834
}

Semantic roles & 50–950 ramp

primary
#400C49
secondary
#39852C
accent
#EE3954
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#090209
muted
#7B787B

Preview Lab

Preview with #400C49

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

Preview Lab → · Contrast checker → · Palette generator →

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