#401C82#401C82

#401C82 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.157 H 292.2°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#401C82
RGBrgb(64, 28, 130)
HSLhsl(261, 65%, 31%)
HSVhsv(261, 78%, 51%)
CMYKcmyk(50.8%, 78.5%, 0%, 49%)
CIE-LABlab(22.06, 41.02, -50.75)
CIE-LCHlch(22.06, 65.26, 308.95°)
OKLaboklab(34.66% 0.0593 -0.1457)
OKLCHoklch(34.66% 0.157 292.2)
XYZxyz(6.5577, 3.5320, 21.4510)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C82 #5E821C
analogous
#1C2B82 #401C82 #731C82
triadic
#401C82 #82401C #1C8240
tetradic
#401C82 #821C2B #5E821C #1C8273
square
#401C82 #821C2B #5E821C #1C8273
split-complementary
#401C82 #82731C #2B821C
monochromatic
#0E061D #271150 #401C82 #5927B4 #7642D6

Accessibility & contrast

On white

12.31
#401C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#401C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C82
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C82#FFFFFF#000000##FFFFFF
##401C821.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#003380
Tritanopia (blue-blind)
#2A384E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #401c82;
/* rgb */ color: rgb(64, 28, 130);
/* oklch */ color: oklch(34.7% 0.157 292.2);
Tailwind
colors: {
  custom: {
    50: '#7c5da7',
    500: '#401c82',
    950: '#000000',
  },
}
SCSS
$custom: #401c82;
$custom-light: #7c5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#401c82",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 261.176,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3466,
    "c": 0.15733,
    "h": 292.2
  },
  "luminance": 0.03532
}

Semantic roles & 50–950 ramp

primary
#401C82
secondary
#8EB544
accent
#E840AD
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #401C82

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

Preview Lab → · Contrast checker → · Palette generator →

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