#401472#401472

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

Color values

HEX#401472
RGBrgb(64, 20, 114)
HSLhsl(268, 70%, 26%)
HSVhsv(268, 82%, 45%)
CMYKcmyk(43.9%, 82.5%, 0%, 55.3%)
CIE-LABlab(19.25, 40.31, -45.15)
CIE-LCHlch(19.25, 60.52, 311.76°)
OKLaboklab(32.22% 0.071 -0.1292)
OKLCHoklch(32.22% 0.147 298.8)
XYZxyz(5.4010, 2.8051, 16.1732)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401472 #467214
analogous
#141772 #401472 #6F1472
triadic
#401472 #724014 #147240
tetradic
#401472 #721417 #467214 #14726F
square
#401472 #721417 #467214 #14726F
split-complementary
#401472 #726F14 #177214
monochromatic
#0F051A #230B3E #401472 #5D1DA6 #7B27D9

Accessibility & contrast

On white

13.45
#401472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401472
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401472#FFFFFF#000000##FFFFFF
##4014721.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#342E43
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401472;
/* rgb */ color: rgb(64, 20, 114);
/* oklch */ color: oklch(32.2% 0.147 298.8);
Tailwind
colors: {
  custom: {
    50: '#7b589b',
    500: '#401472',
    950: '#000000',
  },
}
SCSS
$custom: #401472;
$custom-light: #7b589b;
$custom-dark: #000000;
JSON
{
  "hex": "#401472",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 268.085,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32224,
    "c": 0.14743,
    "h": 298.8
  },
  "luminance": 0.02805
}

Semantic roles & 50–950 ramp

primary
#401472
secondary
#74A839
accent
#ED3B9A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #401472

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

Preview Lab → · Contrast checker → · Palette generator →

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