#400C40#400C40

#400C40 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.2% C 0.105 H 328.0°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#400C40
RGBrgb(64, 12, 64)
HSLhsl(300, 68%, 15%)
HSVhsv(300, 81%, 25%)
CMYKcmyk(0%, 81.2%, 0%, 74.9%)
CIE-LABlab(13.96, 31.82, -20.03)
CIE-LCHlch(13.96, 37.60, 327.80°)
OKLaboklab(27.21% 0.0888 -0.0555)
OKLCHoklch(27.21% 0.105 328)
XYZxyz(3.1712, 1.7233, 5.0151)
Luminance0.0172 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C40 #0C400C
analogous
#260C40 #400C40 #400C26
triadic
#400C40 #40400C #0C4040
tetradic
#400C40 #40260C #0C400C #0C2640
square
#400C40 #40260C #0C400C #0C2640
split-complementary
#400C40 #26400C #0C4026
monochromatic
#1A051A #1A051A #400C40 #741674 #A71FA7

Accessibility & contrast

On white

15.62
#400C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C40
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C40#FFFFFF#000000##FFFFFF
##400C401.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041F41
Deuteranopia (green-blind)
#1A263F
Tritanopia (blue-blind)
#421425
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400c40;
/* rgb */ color: rgb(64, 12, 64);
/* oklch */ color: oklch(27.2% 0.105 328.0);
Tailwind
colors: {
  custom: {
    50: '#775175',
    500: '#400c40',
    950: '#000000',
  },
}
SCSS
$custom: #400c40;
$custom-light: #775175;
$custom-dark: #000000;
JSON
{
  "hex": "#400c40",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 300,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.27207,
    "c": 0.10468,
    "h": 328
  },
  "luminance": 0.01723
}

Semantic roles & 50–950 ramp

primary
#400C40
secondary
#2C7C2C
accent
#EB3D3D
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400C40

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

Preview Lab → · Contrast checker → · Palette generator →

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