#401C79#401C79

#401C79 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.147 H 294.9°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#401C79
RGBrgb(64, 28, 121)
HSLhsl(263, 62%, 29%)
HSVhsv(263, 77%, 47%)
CMYKcmyk(47.1%, 76.9%, 0%, 52.5%)
CIE-LABlab(21.21, 38.47, -46.43)
CIE-LCHlch(21.21, 60.30, 309.65°)
OKLaboklab(33.8% 0.0618 -0.133)
OKLCHoklch(33.8% 0.147 294.9)
XYZxyz(5.9799, 3.3008, 18.4075)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C79 #55791C
analogous
#1C2779 #401C79 #6F1C79
triadic
#401C79 #79401C #1C7940
tetradic
#401C79 #791C27 #55791C #1C796F
square
#401C79 #791C27 #55791C #1C796F
split-complementary
#401C79 #796F1C #27791C
monochromatic
#0D0619 #261047 #401C79 #5A28AB #773DD2

Accessibility & contrast

On white

12.65
#401C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#401C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C79
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C79#FFFFFF#000000##FFFFFF
##401C791.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#303549
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #401c79;
/* rgb */ color: rgb(64, 28, 121);
/* oklch */ color: oklch(33.8% 0.147 294.9);
Tailwind
colors: {
  custom: {
    50: '#7b5ca1',
    500: '#401c79',
    950: '#000000',
  },
}
SCSS
$custom: #401c79;
$custom-light: #7b5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#401c79",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 263.226,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33803,
    "c": 0.14669,
    "h": 294.9
  },
  "luminance": 0.03301
}

Semantic roles & 50–950 ramp

primary
#401C79
secondary
#84AD44
accent
#E542A6
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401C79

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

Preview Lab → · Contrast checker → · Palette generator →

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