#401A71#401A71

#401A71 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.140 H 298.1°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#401A71
RGBrgb(64, 26, 113)
HSLhsl(266, 63%, 27%)
HSVhsv(266, 77%, 44%)
CMYKcmyk(43.4%, 77%, 0%, 55.7%)
CIE-LABlab(20.13, 37.25, -43.06)
CIE-LCHlch(20.13, 56.94, 310.86°)
OKLaboklab(32.81% 0.0658 -0.1231)
OKLCHoklch(32.81% 0.14 298.1)
XYZxyz(5.4636, 3.0209, 15.9148)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A71 #4B711A
analogous
#1A1F71 #401A71 #6C1A71
triadic
#401A71 #71401A #1A7140
tetradic
#401A71 #711A1F #4B711A #1A716C
square
#401A71 #711A1F #4B711A #1A716C
split-complementary
#401A71 #716C1A #1F711A
monochromatic
#0E0619 #240F3F #401A71 #5C25A3 #7935D0

Accessibility & contrast

On white

13.09
#401A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#401A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A71
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A71#FFFFFF#000000##FFFFFF
##401A711.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#00306F
Tritanopia (blue-blind)
#343044
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401a71;
/* rgb */ color: rgb(64, 26, 113);
/* oklch */ color: oklch(32.8% 0.140 298.1);
Tailwind
colors: {
  custom: {
    50: '#7a5b9b',
    500: '#401a71',
    950: '#000000',
  },
}
SCSS
$custom: #401a71;
$custom-light: #7a5b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#401a71",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 266.207,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32814,
    "c": 0.13959,
    "h": 298.1
  },
  "luminance": 0.03021
}

Semantic roles & 50–950 ramp

primary
#401A71
secondary
#7AA641
accent
#E6429E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401A71

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

Preview Lab → · Contrast checker → · Palette generator →

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