#401C73#401C73

#401C73 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.140 H 297.0°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#401C73
RGBrgb(64, 28, 115)
HSLhsl(265, 61%, 28%)
HSVhsv(265, 76%, 45%)
CMYKcmyk(44.3%, 75.7%, 0%, 54.9%)
CIE-LABlab(20.67, 36.78, -43.47)
CIE-LCHlch(20.67, 56.95, 310.23°)
OKLaboklab(33.25% 0.0633 -0.1243)
OKLCHoklch(33.25% 0.14 297)
XYZxyz(5.6233, 3.1582, 16.5297)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C73 #4F731C
analogous
#1C2373 #401C73 #6B1C73
triadic
#401C73 #73401C #1C7340
tetradic
#401C73 #731C23 #4F731C #1C736B
square
#401C73 #731C23 #4F731C #1C736B
split-complementary
#401C73 #736B1C #23731C
monochromatic
#0E0619 #251042 #401C73 #5B28A4 #783ACF

Accessibility & contrast

On white

12.87
#401C73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#401C73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C73
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C73#FFFFFF#000000##FFFFFF
##401C731.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003276
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#333245
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #401c73;
/* rgb */ color: rgb(64, 28, 115);
/* oklch */ color: oklch(33.3% 0.140 297.0);
Tailwind
colors: {
  custom: {
    50: '#7a5c9c',
    500: '#401c73',
    950: '#000000',
  },
}
SCSS
$custom: #401c73;
$custom-light: #7a5c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#401c73",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 115
  },
  "hsl": {
    "h": 264.828,
    "s": 60.839,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3325,
    "c": 0.13951,
    "h": 297
  },
  "luminance": 0.03158
}

Semantic roles & 50–950 ramp

primary
#401C73
secondary
#7EA743
accent
#E444A2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401C73

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

Preview Lab → · Contrast checker → · Palette generator →

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