#401A78#401A78

#401A78 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.148 H 295.6°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#401A78
RGBrgb(64, 26, 120)
HSLhsl(264, 64%, 29%)
HSVhsv(264, 78%, 47%)
CMYKcmyk(46.7%, 78.3%, 0%, 52.9%)
CIE-LABlab(20.77, 39.18, -46.52)
CIE-LCHlch(20.77, 60.82, 310.11°)
OKLaboklab(33.46% 0.0639 -0.1333)
OKLCHoklch(33.46% 0.148 295.6)
XYZxyz(5.8730, 3.1847, 18.0709)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A78 #52781A
analogous
#1A2378 #401A78 #6F1A78
triadic
#401A78 #78401A #1A7840
tetradic
#401A78 #781A23 #52781A #1A786F
square
#401A78 #781A23 #52781A #1A786F
split-complementary
#401A78 #786F1A #23781A
monochromatic
#0D0519 #250F46 #401A78 #5B25AA #7738D4

Accessibility & contrast

On white

12.83
#401A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#401A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A78
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A78#FFFFFF#000000##FFFFFF
##401A781.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401a78;
/* rgb */ color: rgb(64, 26, 120);
/* oklch */ color: oklch(33.5% 0.148 295.6);
Tailwind
colors: {
  custom: {
    50: '#7b5ba0',
    500: '#401a78',
    950: '#000000',
  },
}
SCSS
$custom: #401a78;
$custom-light: #7b5ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#401a78",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 264.255,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33464,
    "c": 0.14781,
    "h": 295.6
  },
  "luminance": 0.03185
}

Semantic roles & 50–950 ramp

primary
#401A78
secondary
#81AC41
accent
#E740A4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #401A78

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

Preview Lab → · Contrast checker → · Palette generator →

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