#400C42#400C42

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

Color values

HEX#400C42
RGBrgb(64, 12, 66)
HSLhsl(298, 69%, 15%)
HSVhsv(298, 82%, 26%)
CMYKcmyk(3%, 81.8%, 0%, 74.1%)
CIE-LABlab(14.10, 32.21, -21.23)
CIE-LCHlch(14.10, 38.58, 326.62°)
OKLaboklab(27.35% 0.0887 -0.059)
OKLCHoklch(27.35% 0.107 326.4)
XYZxyz(3.2291, 1.7465, 5.3202)
Luminance0.0175 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C42 #0E420C
analogous
#250C42 #400C42 #420C29
triadic
#400C42 #42400C #0C4240
tetradic
#400C42 #42250C #0E420C #0C2942
square
#400C42 #42250C #0E420C #0C2942
split-complementary
#400C42 #29420C #0C4225
monochromatic
#19051A #19051A #400C42 #721576 #A41FAA

Accessibility & contrast

On white

15.56
#400C42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C42
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C42#FFFFFF#000000##FFFFFF
##400C421.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022043
Deuteranopia (green-blind)
#192641
Tritanopia (blue-blind)
#421526
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400c42;
/* rgb */ color: rgb(64, 12, 66);
/* oklch */ color: oklch(27.3% 0.107 326.4);
Tailwind
colors: {
  custom: {
    50: '#775176',
    500: '#400c42',
    950: '#000000',
  },
}
SCSS
$custom: #400c42;
$custom-light: #775176;
$custom-dark: #000000;
JSON
{
  "hex": "#400c42",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 66
  },
  "hsl": {
    "h": 297.778,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.27346,
    "c": 0.10654,
    "h": 326.4
  },
  "luminance": 0.01746
}

Semantic roles & 50–950 ramp

primary
#400C42
secondary
#2F7E2C
accent
#EC3C42
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400C42

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

Preview Lab → · Contrast checker → · Palette generator →

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