#401373#401373

#401373 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.150 H 298.6°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#401373
RGBrgb(64, 19, 115)
HSLhsl(268, 72%, 26%)
HSVhsv(268, 83%, 45%)
CMYKcmyk(44.3%, 83.5%, 0%, 54.9%)
CIE-LABlab(19.20, 40.99, -45.88)
CIE-LCHlch(19.20, 61.52, 311.78°)
OKLaboklab(32.22% 0.0715 -0.1313)
OKLCHoklch(32.22% 0.15 298.6)
XYZxyz(5.4409, 2.7935, 16.4689)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401373 #467313
analogous
#131673 #401373 #701373
triadic
#401373 #734013 #137340
tetradic
#401373 #731316 #467313 #137370
square
#401373 #731316 #467313 #137370
split-complementary
#401373 #737013 #167313
monochromatic
#0F041A #230A3E #401373 #5D1CA8 #7B25DB

Accessibility & contrast

On white

13.47
#401373 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#401373 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401373
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401373#FFFFFF#000000##FFFFFF
##4013731.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401373;
/* rgb */ color: rgb(64, 19, 115);
/* oklch */ color: oklch(32.2% 0.150 298.6);
Tailwind
colors: {
  custom: {
    50: '#7b579c',
    500: '#401373',
    950: '#000000',
  },
}
SCSS
$custom: #401373;
$custom-light: #7b579c;
$custom-dark: #000000;
JSON
{
  "hex": "#401373",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 115
  },
  "hsl": {
    "h": 268.125,
    "s": 71.642,
    "l": 26.275
  },
  "oklch": {
    "l": 0.3222,
    "c": 0.14952,
    "h": 298.6
  },
  "luminance": 0.02794
}

Semantic roles & 50–950 ramp

primary
#401373
secondary
#74AA38
accent
#EE399A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #401373

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

Preview Lab → · Contrast checker → · Palette generator →

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