#401973#401973

#401973 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.143 H 297.6°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#401973
RGBrgb(64, 25, 115)
HSLhsl(266, 64%, 27%)
HSVhsv(266, 78%, 45%)
CMYKcmyk(44.3%, 78.3%, 0%, 54.9%)
CIE-LABlab(20.14, 38.29, -44.34)
CIE-LCHlch(20.14, 58.58, 310.81°)
OKLaboklab(32.88% 0.0662 -0.1269)
OKLCHoklch(32.88% 0.143 297.6)
XYZxyz(5.5557, 3.0230, 16.5071)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401973 #4C7319
analogous
#191F73 #401973 #6D1973
triadic
#401973 #734019 #197340
tetradic
#401973 #73191F #4C7319 #19736D
square
#401973 #73191F #4C7319 #19736D
split-complementary
#401973 #736D19 #1F7319
monochromatic
#0E0519 #240E41 #401973 #5C24A5 #7934D3

Accessibility & contrast

On white

13.09
#401973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#401973 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401973
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401973#FFFFFF#000000##FFFFFF
##4019731.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.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: #401973;
/* rgb */ color: rgb(64, 25, 115);
/* oklch */ color: oklch(32.9% 0.143 297.6);
Tailwind
colors: {
  custom: {
    50: '#7a5a9c',
    500: '#401973',
    950: '#000000',
  },
}
SCSS
$custom: #401973;
$custom-light: #7a5a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#401973",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 115
  },
  "hsl": {
    "h": 266,
    "s": 64.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32876,
    "c": 0.14311,
    "h": 297.6
  },
  "luminance": 0.03023
}

Semantic roles & 50–950 ramp

primary
#401973
secondary
#7BA840
accent
#E7419F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401973

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

Preview Lab → · Contrast checker → · Palette generator →

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