#401C97#401C97

#401C97 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.182 H 286.9°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#401C97
RGBrgb(64, 28, 151)
HSLhsl(258, 69%, 35%)
HSVhsv(258, 81%, 59%)
CMYKcmyk(57.6%, 81.5%, 0%, 40.8%)
CIE-LABlab(24.18, 46.99, -60.36)
CIE-LCHlch(24.18, 76.49, 307.90°)
OKLaboklab(36.77% 0.0527 -0.1738)
OKLCHoklch(36.77% 0.182 286.9)
XYZxyz(8.1138, 4.1544, 29.6465)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C97 #73971C
analogous
#1C3597 #401C97 #7D1C97
triadic
#401C97 #97401C #1C9740
tetradic
#401C97 #971C35 #73971C #1C977D
square
#401C97 #971C35 #73971C #1C977D
split-complementary
#401C97 #977D1C #35971C
monochromatic
#140930 #2A1263 #401C97 #5626CB #794FDE

Accessibility & contrast

On white

11.47
#401C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#401C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C97
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C97#FFFFFF#000000##FFFFFF
##401C971.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401c97;
/* rgb */ color: rgb(64, 28, 151);
/* oklch */ color: oklch(36.8% 0.182 286.9);
Tailwind
colors: {
  custom: {
    50: '#805eb7',
    500: '#401c97',
    950: '#000000',
  },
}
SCSS
$custom: #401c97;
$custom-light: #805eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#401c97",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 257.561,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36773,
    "c": 0.18162,
    "h": 286.9
  },
  "luminance": 0.04155
}

Semantic roles & 50–950 ramp

primary
#401C97
secondary
#9FC14E
accent
#EC3CB8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #401C97

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

Preview Lab → · Contrast checker → · Palette generator →

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