#401B78#401B78

#401B78 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.147 H 295.4°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#401B78
RGBrgb(64, 27, 120)
HSLhsl(264, 63%, 29%)
HSVhsv(264, 78%, 47%)
CMYKcmyk(46.7%, 77.5%, 0%, 52.9%)
CIE-LABlab(20.94, 38.69, -46.23)
CIE-LCHlch(20.94, 60.29, 309.93°)
OKLaboklab(33.59% 0.063 -0.1324)
OKLCHoklch(33.59% 0.147 295.4)
XYZxyz(5.8955, 3.2298, 18.0784)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B78 #53781B
analogous
#1B2578 #401B78 #6F1B78
triadic
#401B78 #78401B #1B7840
tetradic
#401B78 #781B25 #53781B #1B786F
square
#401B78 #781B25 #53781B #1B786F
split-complementary
#401B78 #786F1B #25781B
monochromatic
#0D0619 #251046 #401B78 #5B26AA #773BD3

Accessibility & contrast

On white

12.76
#401B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#401B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B78
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B78#FFFFFF#000000##FFFFFF
##401B781.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401b78;
/* rgb */ color: rgb(64, 27, 120);
/* oklch */ color: oklch(33.6% 0.147 295.4);
Tailwind
colors: {
  custom: {
    50: '#7b5ba0',
    500: '#401b78',
    950: '#000000',
  },
}
SCSS
$custom: #401b78;
$custom-light: #7b5ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#401b78",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 263.871,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33585,
    "c": 0.14666,
    "h": 295.4
  },
  "luminance": 0.0323
}

Semantic roles & 50–950 ramp

primary
#401B78
secondary
#82AC43
accent
#E641A5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #401B78

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

Preview Lab → · Contrast checker → · Palette generator →

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