#401A97#401A97

#401A97 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.183 H 287.1°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#401A97
RGBrgb(64, 26, 151)
HSLhsl(258, 71%, 35%)
HSVhsv(258, 83%, 59%)
CMYKcmyk(57.6%, 82.8%, 0%, 40.8%)
CIE-LABlab(23.88, 47.86, -60.85)
CIE-LCHlch(23.88, 77.41, 308.18°)
OKLaboklab(36.57% 0.054 -0.1752)
OKLCHoklch(36.57% 0.183 287.1)
XYZxyz(8.0680, 4.0627, 29.6312)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A97 #71971A
analogous
#1A3397 #401A97 #7F1A97
triadic
#401A97 #97401A #1A9740
tetradic
#401A97 #971A33 #71971A #1A977F
square
#401A97 #971A33 #71971A #1A977F
split-complementary
#401A97 #977F1A #33971A
monochromatic
#14082F #2A1163 #401A97 #5623CB #794BE0

Accessibility & contrast

On white

11.59
#401A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#401A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A97
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A97#FFFFFF#000000##FFFFFF
##401A971.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#16405A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #401a97;
/* rgb */ color: rgb(64, 26, 151);
/* oklch */ color: oklch(36.6% 0.183 287.1);
Tailwind
colors: {
  custom: {
    50: '#805db7',
    500: '#401a97',
    950: '#000000',
  },
}
SCSS
$custom: #401a97;
$custom-light: #805db7;
$custom-dark: #000000;
JSON
{
  "hex": "#401a97",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 258.24,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36567,
    "c": 0.18334,
    "h": 287.1
  },
  "luminance": 0.04063
}

Semantic roles & 50–950 ramp

primary
#401A97
secondary
#9EC24B
accent
#ED3AB7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #401A97

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

Preview Lab → · Contrast checker → · Palette generator →

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