#401C91#401C91

#401C91 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.175 H 288.2°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#401C91
RGBrgb(64, 28, 145)
HSLhsl(258, 68%, 34%)
HSVhsv(258, 81%, 57%)
CMYKcmyk(55.9%, 80.7%, 0%, 43.1%)
CIE-LABlab(23.55, 45.29, -57.68)
CIE-LCHlch(23.55, 73.33, 308.14°)
OKLaboklab(36.16% 0.0547 -0.166)
OKLCHoklch(36.16% 0.175 288.2)
XYZxyz(7.6389, 3.9644, 27.1453)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C91 #6D911C
analogous
#1C3291 #401C91 #7B1C91
triadic
#401C91 #91401C #1C9140
tetradic
#401C91 #911C32 #6D911C #1C917B
square
#401C91 #911C32 #6D911C #1C917B
split-complementary
#401C91 #917B1C #32911C
monochromatic
#13082A #29125E #401C91 #5726C4 #784BDC

Accessibility & contrast

On white

11.71
#401C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#401C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C91
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C91#FFFFFF#000000##FFFFFF
##401C911.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00358F
Tritanopia (blue-blind)
#1E3E57
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #401c91;
/* rgb */ color: rgb(64, 28, 145);
/* oklch */ color: oklch(36.2% 0.175 288.2);
Tailwind
colors: {
  custom: {
    50: '#7f5db2',
    500: '#401c91',
    950: '#000000',
  },
}
SCSS
$custom: #401c91;
$custom-light: #7f5db2;
$custom-dark: #000000;
JSON
{
  "hex": "#401c91",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 145
  },
  "hsl": {
    "h": 258.462,
    "s": 67.63,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36155,
    "c": 0.17475,
    "h": 288.2
  },
  "luminance": 0.03965
}

Semantic roles & 50–950 ramp

primary
#401C91
secondary
#9BBE4A
accent
#EB3DB5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #401C91

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

Preview Lab → · Contrast checker → · Palette generator →

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