#400C4D#400C4D

#400C4D is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.2% C 0.117 H 318.5°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#400C4D
RGBrgb(64, 12, 77)
HSLhsl(288, 73%, 17%)
HSVhsv(288, 84%, 30%)
CMYKcmyk(16.9%, 84.4%, 0%, 69.8%)
CIE-LABlab(14.89, 34.53, -27.60)
CIE-LCHlch(14.89, 44.20, 321.37°)
OKLaboklab(28.17% 0.0878 -0.0776)
OKLCHoklch(28.17% 0.117 318.5)
XYZxyz(3.5852, 1.8889, 7.1955)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C4D #194D0C
analogous
#1F0C4D #400C4D #4D0C3A
triadic
#400C4D #4D400C #0C4D40
tetradic
#400C4D #4D1F0C #194D0C #0C3A4D
square
#400C4D #4D1F0C #194D0C #0C3A4D
split-complementary
#400C4D #3A4D0C #0C4D1F
monochromatic
#16041A #16041A #400C4D #6C1482 #981DB7

Accessibility & contrast

On white

15.24
#400C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#400C4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C4D
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C4D#FFFFFF#000000##FFFFFF
##400C4D1.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224F
Deuteranopia (green-blind)
#10274C
Tritanopia (blue-blind)
#401A2C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #400c4d;
/* rgb */ color: rgb(64, 12, 77);
/* oklch */ color: oklch(28.2% 0.117 318.5);
Tailwind
colors: {
  custom: {
    50: '#78527f',
    500: '#400c4d',
    950: '#000000',
  },
}
SCSS
$custom: #400c4d;
$custom-light: #78527f;
$custom-dark: #000000;
JSON
{
  "hex": "#400c4d",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 288,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.28167,
    "c": 0.11714,
    "h": 318.5
  },
  "luminance": 0.01889
}

Semantic roles & 50–950 ramp

primary
#400C4D
secondary
#3F892C
accent
#F0385D
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#09020A
muted
#7B787C

Preview Lab

Preview with #400C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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