#401A79#401A79

#401A79 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.149 H 295.3°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#401A79
RGBrgb(64, 26, 121)
HSLhsl(264, 65%, 29%)
HSVhsv(264, 79%, 47%)
CMYKcmyk(47.1%, 78.5%, 0%, 52.5%)
CIE-LABlab(20.86, 39.46, -47.00)
CIE-LCHlch(20.86, 61.37, 310.02°)
OKLaboklab(33.56% 0.0637 -0.1347)
OKLCHoklch(33.56% 0.149 295.3)
XYZxyz(5.9340, 3.2091, 18.3922)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A79 #53791A
analogous
#1A2479 #401A79 #701A79
triadic
#401A79 #79401A #1A7940
tetradic
#401A79 #791A24 #53791A #1A7970
square
#401A79 #791A24 #53791A #1A7970
split-complementary
#401A79 #79701A #24791A
monochromatic
#0D0519 #250F47 #401A79 #5B25AB #7739D4

Accessibility & contrast

On white

12.79
#401A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#401A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A79
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A79#FFFFFF#000000##FFFFFF
##401A791.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#303448
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #401a79;
/* rgb */ color: rgb(64, 26, 121);
/* oklch */ color: oklch(33.6% 0.149 295.3);
Tailwind
colors: {
  custom: {
    50: '#7b5ba1',
    500: '#401a79',
    950: '#000000',
  },
}
SCSS
$custom: #401a79;
$custom-light: #7b5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#401a79",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 264,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33558,
    "c": 0.14897,
    "h": 295.3
  },
  "luminance": 0.03209
}

Semantic roles & 50–950 ramp

primary
#401A79
secondary
#82AD41
accent
#E840A5
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401A79

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

Preview Lab → · Contrast checker → · Palette generator →

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