#401A73#401A73

#401A73 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.142 H 297.4°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#401A73
RGBrgb(64, 26, 115)
HSLhsl(266, 63%, 28%)
HSVhsv(266, 77%, 45%)
CMYKcmyk(44.3%, 77.4%, 0%, 54.9%)
CIE-LABlab(20.31, 37.80, -44.06)
CIE-LCHlch(20.31, 58.05, 310.63°)
OKLaboklab(33% 0.0653 -0.126)
OKLCHoklch(33% 0.142 297.4)
XYZxyz(5.5775, 3.0665, 16.5144)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A73 #4D731A
analogous
#1A2073 #401A73 #6D1A73
triadic
#401A73 #73401A #1A7340
tetradic
#401A73 #731A20 #4D731A #1A736D
square
#401A73 #731A20 #4D731A #1A736D
split-complementary
#401A73 #736D1A #20731A
monochromatic
#0E0619 #240F41 #401A73 #5C25A5 #7836D2

Accessibility & contrast

On white

13.02
#401A73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#401A73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A73
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A73#FFFFFF#000000##FFFFFF
##401A731.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#003071
Tritanopia (blue-blind)
#333145
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401a73;
/* rgb */ color: rgb(64, 26, 115);
/* oklch */ color: oklch(33.0% 0.142 297.4);
Tailwind
colors: {
  custom: {
    50: '#7a5b9c',
    500: '#401a73',
    950: '#000000',
  },
}
SCSS
$custom: #401a73;
$custom-light: #7a5b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#401a73",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 115
  },
  "hsl": {
    "h": 265.618,
    "s": 63.121,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32997,
    "c": 0.14194,
    "h": 297.4
  },
  "luminance": 0.03067
}

Semantic roles & 50–950 ramp

primary
#401A73
secondary
#7CA841
accent
#E642A0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401A73

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

Preview Lab → · Contrast checker → · Palette generator →

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