#401573#401573

#401573 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.148 H 298.3°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#401573
RGBrgb(64, 21, 115)
HSLhsl(267, 69%, 27%)
HSVhsv(267, 82%, 45%)
CMYKcmyk(44.3%, 81.7%, 0%, 54.9%)
CIE-LABlab(19.49, 40.14, -45.40)
CIE-LCHlch(19.49, 60.60, 311.48°)
OKLaboklab(32.42% 0.0698 -0.1299)
OKLCHoklch(32.42% 0.148 298.3)
XYZxyz(5.4762, 2.8640, 16.4806)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401573 #487315
analogous
#151973 #401573 #6F1573
triadic
#401573 #734015 #157340
tetradic
#401573 #731519 #487315 #15736F
square
#401573 #731519 #487315 #15736F
split-complementary
#401573 #736F15 #197315
monochromatic
#0E051A #230C3F #401573 #5D1EA7 #7A2AD8

Accessibility & contrast

On white

13.35
#401573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#401573 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401573
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401573#FFFFFF#000000##FFFFFF
##4015731.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F76
Deuteranopia (green-blind)
#002E71
Tritanopia (blue-blind)
#332F44
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401573;
/* rgb */ color: rgb(64, 21, 115);
/* oklch */ color: oklch(32.4% 0.148 298.3);
Tailwind
colors: {
  custom: {
    50: '#7b589c',
    500: '#401573',
    950: '#000000',
  },
}
SCSS
$custom: #401573;
$custom-light: #7b589c;
$custom-dark: #000000;
JSON
{
  "hex": "#401573",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 115
  },
  "hsl": {
    "h": 267.447,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32424,
    "c": 0.14751,
    "h": 298.3
  },
  "luminance": 0.02864
}

Semantic roles & 50–950 ramp

primary
#401573
secondary
#77A93B
accent
#EC3C9B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401573

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

Preview Lab → · Contrast checker → · Palette generator →

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