#400C3F#400C3F

#400C3F is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.1% C 0.104 H 328.8°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#400C3F
RGBrgb(64, 12, 63)
HSLhsl(301, 68%, 15%)
HSVhsv(301, 81%, 25%)
CMYKcmyk(0%, 81.2%, 1.6%, 74.9%)
CIE-LABlab(13.90, 31.62, -19.43)
CIE-LCHlch(13.90, 37.11, 328.43°)
OKLaboklab(27.14% 0.0888 -0.0537)
OKLCHoklch(27.14% 0.104 328.8)
XYZxyz(3.1430, 1.7120, 4.8666)
Luminance0.0171 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C3F #0C400D
analogous
#270C40 #400C3F #400C25
triadic
#400C3F #3F400C #0C3F40
tetradic
#400C3F #40270C #0C400D #0C2540
square
#400C3F #40270C #0C400D #0C2540
split-complementary
#400C3F #25400C #0C4027
monochromatic
#1A0519 #1A0519 #400C3F #741672 #A71FA4

Accessibility & contrast

On white

15.64
#400C3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#400C3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C3F
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C3F#FFFFFF#000000##FFFFFF
##400C3F1.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051F40
Deuteranopia (green-blind)
#1B263E
Tritanopia (blue-blind)
#421324
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400c3f;
/* rgb */ color: rgb(64, 12, 63);
/* oklch */ color: oklch(27.1% 0.104 328.8);
Tailwind
colors: {
  custom: {
    50: '#775174',
    500: '#400c3f',
    950: '#000000',
  },
}
SCSS
$custom: #400c3f;
$custom-light: #775174;
$custom-dark: #000000;
JSON
{
  "hex": "#400c3f",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 63
  },
  "hsl": {
    "h": 301.154,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.27139,
    "c": 0.10375,
    "h": 328.8
  },
  "luminance": 0.01712
}

Semantic roles & 50–950 ramp

primary
#400C3F
secondary
#2C7C2D
accent
#EB403D
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400C3F

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

Preview Lab → · Contrast checker → · Palette generator →

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