#401571#401571

#401571 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.145 H 299.0°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#401571
RGBrgb(64, 21, 113)
HSLhsl(268, 69%, 26%)
HSVhsv(268, 81%, 44%)
CMYKcmyk(43.4%, 81.4%, 0%, 55.7%)
CIE-LABlab(19.30, 39.61, -44.41)
CIE-LCHlch(19.30, 59.51, 311.73°)
OKLaboklab(32.23% 0.0705 -0.127)
OKLCHoklch(32.23% 0.145 299)
XYZxyz(5.3624, 2.8185, 15.8811)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401571 #467115
analogous
#151871 #401571 #6E1571
triadic
#401571 #714015 #157140
tetradic
#401571 #711518 #467115 #15716E
square
#401571 #711518 #467115 #15716E
split-complementary
#401571 #716E15 #187115
monochromatic
#0F051A #230B3D #401571 #5D1FA5 #7B29D7

Accessibility & contrast

On white

13.43
#401571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#401571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401571
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401571#FFFFFF#000000##FFFFFF
##4015711.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#342E43
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401571;
/* rgb */ color: rgb(64, 21, 113);
/* oklch */ color: oklch(32.2% 0.145 299.0);
Tailwind
colors: {
  custom: {
    50: '#7a589b',
    500: '#401571',
    950: '#000000',
  },
}
SCSS
$custom: #401571;
$custom-light: #7a589b;
$custom-dark: #000000;
JSON
{
  "hex": "#401571",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 268.043,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32234,
    "c": 0.14527,
    "h": 299
  },
  "luminance": 0.02819
}

Semantic roles & 50–950 ramp

primary
#401571
secondary
#74A73B
accent
#EB3C9A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401571

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

Preview Lab → · Contrast checker → · Palette generator →

#401571 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva