#401D73#401D73

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

Color values

HEX#401D73
RGBrgb(64, 29, 115)
HSLhsl(264, 60%, 28%)
HSVhsv(264, 75%, 45%)
CMYKcmyk(44.3%, 74.8%, 0%, 54.9%)
CIE-LABlab(20.85, 36.26, -43.17)
CIE-LCHlch(20.85, 56.38, 310.03°)
OKLaboklab(33.38% 0.0622 -0.1234)
OKLCHoklch(33.38% 0.138 296.8)
XYZxyz(5.6474, 3.2064, 16.5377)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D73 #50731D
analogous
#1D2573 #401D73 #6B1D73
triadic
#401D73 #73401D #1D7340
tetradic
#401D73 #731D25 #50731D #1D736B
square
#401D73 #731D25 #50731D #1D736B
split-complementary
#401D73 #736B1D #25731D
monochromatic
#0E0618 #251142 #401D73 #5B29A4 #783CCE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##401D73#FFFFFF#000000##FFFFFF
##401D731.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)
#003376
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#333346
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #401d73;
/* rgb */ color: rgb(64, 29, 115);
/* oklch */ color: oklch(33.4% 0.138 296.8);
Tailwind
colors: {
  custom: {
    50: '#7a5c9c',
    500: '#401d73',
    950: '#000000',
  },
}
SCSS
$custom: #401d73;
$custom-light: #7a5c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#401d73",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 115
  },
  "hsl": {
    "h": 264.419,
    "s": 59.722,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33382,
    "c": 0.13825,
    "h": 296.8
  },
  "luminance": 0.03207
}

Semantic roles & 50–950 ramp

primary
#401D73
secondary
#7FA745
accent
#E345A3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401D73

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

Preview Lab → · Contrast checker → · Palette generator →

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