#401981#401981

#401981 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.159 H 293.0°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#401981
RGBrgb(64, 25, 129)
HSLhsl(263, 68%, 30%)
HSVhsv(263, 81%, 51%)
CMYKcmyk(50.4%, 80.6%, 0%, 49.4%)
CIE-LABlab(21.47, 42.16, -51.09)
CIE-LCHlch(21.47, 66.24, 309.53°)
OKLaboklab(34.22% 0.0621 -0.1467)
OKLCHoklch(34.22% 0.159 293)
XYZxyz(6.4233, 3.3700, 21.0767)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401981 #5A8119
analogous
#192681 #401981 #741981
triadic
#401981 #814019 #198140
tetradic
#401981 #811926 #5A8119 #198174
square
#401981 #811926 #5A8119 #198174
split-complementary
#401981 #817419 #268119
monochromatic
#0D051A #270F4E #401981 #5923B4 #763BD9

Accessibility & contrast

On white

12.54
#401981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401981
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401981#FFFFFF#000000##FFFFFF
##4019811.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401981;
/* rgb */ color: rgb(64, 25, 129);
/* oklch */ color: oklch(34.2% 0.159 293.0);
Tailwind
colors: {
  custom: {
    50: '#7c5ba7',
    500: '#401981',
    950: '#000000',
  },
}
SCSS
$custom: #401981;
$custom-light: #7c5ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#401981",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 262.5,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34217,
    "c": 0.15928,
    "h": 293
  },
  "luminance": 0.0337
}

Semantic roles & 50–950 ramp

primary
#401981
secondary
#89B541
accent
#EA3DAA
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401981

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

Preview Lab → · Contrast checker → · Palette generator →

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