#400C41#400C41

#400C41 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.3% C 0.106 H 327.2°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#400C41
RGBrgb(64, 12, 65)
HSLhsl(299, 69%, 15%)
HSVhsv(299, 82%, 25%)
CMYKcmyk(1.5%, 81.5%, 0%, 74.5%)
CIE-LABlab(14.03, 32.01, -20.63)
CIE-LCHlch(14.03, 38.09, 327.20°)
OKLaboklab(27.28% 0.0888 -0.0572)
OKLCHoklch(27.28% 0.106 327.2)
XYZxyz(3.1999, 1.7348, 5.1663)
Luminance0.0174 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C41 #0D410C
analogous
#250C41 #400C41 #410C27
triadic
#400C41 #41400C #0C4140
tetradic
#400C41 #41250C #0D410C #0C2741
square
#400C41 #41250C #0D410C #0C2741
split-complementary
#400C41 #27410C #0C4125
monochromatic
#19051A #19051A #400C41 #731675 #A61FA8

Accessibility & contrast

On white

15.59
#400C41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#400C41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C41
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C41#FFFFFF#000000##FFFFFF
##400C411.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031F42
Deuteranopia (green-blind)
#192640
Tritanopia (blue-blind)
#421425
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400c41;
/* rgb */ color: rgb(64, 12, 65);
/* oklch */ color: oklch(27.3% 0.106 327.2);
Tailwind
colors: {
  custom: {
    50: '#775176',
    500: '#400c41',
    950: '#000000',
  },
}
SCSS
$custom: #400c41;
$custom-light: #775176;
$custom-dark: #000000;
JSON
{
  "hex": "#400c41",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 65
  },
  "hsl": {
    "h": 298.868,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.27276,
    "c": 0.1056,
    "h": 327.2
  },
  "luminance": 0.01735
}

Semantic roles & 50–950 ramp

primary
#400C41
secondary
#2D7D2C
accent
#EC3C3F
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400C41

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

Preview Lab → · Contrast checker → · Palette generator →

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