#401073#401073

#401073 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.152 H 299.0°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#401073
RGBrgb(64, 16, 115)
HSLhsl(269, 76%, 26%)
HSVhsv(269, 86%, 45%)
CMYKcmyk(44.3%, 86.1%, 0%, 54.9%)
CIE-LABlab(18.79, 42.17, -46.54)
CIE-LCHlch(18.79, 62.80, 312.18°)
OKLaboklab(31.94% 0.0738 -0.1332)
OKLCHoklch(31.94% 0.152 299)
XYZxyz(5.3934, 2.6983, 16.4530)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401073 #437310
analogous
#101173 #401073 #711073
triadic
#401073 #734010 #107340
tetradic
#401073 #731011 #437310 #107371
square
#401073 #731011 #437310 #107371
split-complementary
#401073 #737110 #117310
monochromatic
#0F041B #22093D #401073 #5E17A9 #7C1FDE

Accessibility & contrast

On white

13.64
#401073 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#401073 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401073
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401073#FFFFFF#000000##FFFFFF
##4010731.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002D71
Tritanopia (blue-blind)
#332D43
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401073;
/* rgb */ color: rgb(64, 16, 115);
/* oklch */ color: oklch(31.9% 0.152 299.0);
Tailwind
colors: {
  custom: {
    50: '#7b569c',
    500: '#401073',
    950: '#000000',
  },
}
SCSS
$custom: #401073;
$custom-light: #7b569c;
$custom-dark: #000000;
JSON
{
  "hex": "#401073",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 115
  },
  "hsl": {
    "h": 269.091,
    "s": 75.573,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3194,
    "c": 0.1523,
    "h": 299
  },
  "luminance": 0.02698
}

Semantic roles & 50–950 ramp

primary
#401073
secondary
#71AA34
accent
#F23697
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #401073

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

Preview Lab → · Contrast checker → · Palette generator →

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