#401A82#401A82

#401A82 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.159 H 292.5°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#401A82
RGBrgb(64, 26, 130)
HSLhsl(262, 67%, 31%)
HSVhsv(262, 80%, 51%)
CMYKcmyk(50.8%, 80%, 0%, 49%)
CIE-LABlab(21.73, 41.98, -51.30)
CIE-LCHlch(21.73, 66.29, 309.29°)
OKLaboklab(34.43% 0.061 -0.1473)
OKLCHoklch(34.43% 0.159 292.5)
XYZxyz(6.5119, 3.4402, 21.4357)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A82 #5C821A
analogous
#1A2882 #401A82 #741A82
triadic
#401A82 #82401A #1A8240
tetradic
#401A82 #821A28 #5C821A #1A8274
square
#401A82 #821A28 #5C821A #1A8274
split-complementary
#401A82 #82741A #28821A
monochromatic
#0E061C #27104F #401A82 #5924B5 #763ED8

Accessibility & contrast

On white

12.44
#401A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#401A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A82
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A82#FFFFFF#000000##FFFFFF
##401A821.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#003280
Tritanopia (blue-blind)
#2B374E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401a82;
/* rgb */ color: rgb(64, 26, 130);
/* oklch */ color: oklch(34.4% 0.159 292.5);
Tailwind
colors: {
  custom: {
    50: '#7d5ca7',
    500: '#401a82',
    950: '#000000',
  },
}
SCSS
$custom: #401a82;
$custom-light: #7d5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#401a82",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 261.923,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34428,
    "c": 0.15942,
    "h": 292.5
  },
  "luminance": 0.0344
}

Semantic roles & 50–950 ramp

primary
#401A82
secondary
#8BB642
accent
#EA3EAB
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #401A82

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

Preview Lab → · Contrast checker → · Palette generator →

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