#401881#401881

#401881 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.160 H 293.1°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#401881
RGBrgb(64, 24, 129)
HSLhsl(263, 69%, 30%)
HSVhsv(263, 81%, 51%)
CMYKcmyk(50.4%, 81.4%, 0%, 49.4%)
CIE-LABlab(21.31, 42.61, -51.35)
CIE-LCHlch(21.31, 66.73, 309.69°)
OKLaboklab(34.11% 0.0629 -0.1474)
OKLCHoklch(34.11% 0.16 293.1)
XYZxyz(6.4023, 3.3280, 21.0697)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401881 #598118
analogous
#182581 #401881 #741881
triadic
#401881 #814018 #188140
tetradic
#401881 #811825 #598118 #188174
square
#401881 #811825 #598118 #188174
split-complementary
#401881 #817418 #258118
monochromatic
#0D051A #260E4D #401881 #5A22B5 #7739DA

Accessibility & contrast

On white

12.61
#401881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#401881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401881
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401881#FFFFFF#000000##FFFFFF
##4018811.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#2B364D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #401881;
/* rgb */ color: rgb(64, 24, 129);
/* oklch */ color: oklch(34.1% 0.160 293.1);
Tailwind
colors: {
  custom: {
    50: '#7c5aa7',
    500: '#401881',
    950: '#000000',
  },
}
SCSS
$custom: #401881;
$custom-light: #7c5aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#401881",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 262.857,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.34109,
    "c": 0.16026,
    "h": 293.1
  },
  "luminance": 0.03328
}

Semantic roles & 50–950 ramp

primary
#401881
secondary
#88B540
accent
#EB3CA9
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401881

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

Preview Lab → · Contrast checker → · Palette generator →

#401881 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva