#401C78#401C78

#401C78 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.145 H 295.3°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#401C78
RGBrgb(64, 28, 120)
HSLhsl(263, 62%, 29%)
HSVhsv(263, 77%, 47%)
CMYKcmyk(46.7%, 76.7%, 0%, 52.9%)
CIE-LABlab(21.12, 38.19, -45.94)
CIE-LCHlch(21.12, 59.74, 309.74°)
OKLaboklab(33.71% 0.0621 -0.1316)
OKLCHoklch(33.71% 0.145 295.3)
XYZxyz(5.9189, 3.2764, 18.0862)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C78 #54781C
analogous
#1C2678 #401C78 #6E1C78
triadic
#401C78 #78401C #1C7840
tetradic
#401C78 #781C26 #54781C #1C786E
square
#401C78 #781C26 #54781C #1C786E
split-complementary
#401C78 #786E1C #26781C
monochromatic
#0D0619 #261046 #401C78 #5A28AA #773DD2

Accessibility & contrast

On white

12.69
#401C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#401C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C78
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C78#FFFFFF#000000##FFFFFF
##401C781.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#003176
Tritanopia (blue-blind)
#303448
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #401c78;
/* rgb */ color: rgb(64, 28, 120);
/* oklch */ color: oklch(33.7% 0.145 295.3);
Tailwind
colors: {
  custom: {
    50: '#7b5ca0',
    500: '#401c78',
    950: '#000000',
  },
}
SCSS
$custom: #401c78;
$custom-light: #7b5ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#401c78",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 120
  },
  "hsl": {
    "h": 263.478,
    "s": 62.162,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3371,
    "c": 0.14549,
    "h": 295.3
  },
  "luminance": 0.03277
}

Semantic roles & 50–950 ramp

primary
#401C78
secondary
#83AC44
accent
#E543A6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #401C78

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

Preview Lab → · Contrast checker → · Palette generator →

#401C78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva