#401C95#401C95

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

Color values

HEX#401C95
RGBrgb(64, 28, 149)
HSLhsl(258, 68%, 35%)
HSVhsv(258, 81%, 58%)
CMYKcmyk(57%, 81.2%, 0%, 41.6%)
CIE-LABlab(23.97, 46.42, -59.47)
CIE-LCHlch(23.97, 75.44, 307.97°)
OKLaboklab(36.57% 0.0534 -0.1712)
OKLCHoklch(36.57% 0.179 287.3)
XYZxyz(7.9528, 4.0900, 28.7983)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C95 #71951C
analogous
#1C3595 #401C95 #7D1C95
triadic
#401C95 #95401C #1C9540
tetradic
#401C95 #951C35 #71951C #1C957D
square
#401C95 #951C35 #71951C #1C957D
split-complementary
#401C95 #957D1C #35951C
monochromatic
#14092E #2A1261 #401C95 #5626C9 #794EDE

Accessibility & contrast

On white

11.55
#401C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#401C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C95
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C95#FFFFFF#000000##FFFFFF
##401C951.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003693
Tritanopia (blue-blind)
#194059
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #401c95;
/* rgb */ color: rgb(64, 28, 149);
/* oklch */ color: oklch(36.6% 0.179 287.3);
Tailwind
colors: {
  custom: {
    50: '#7f5eb5',
    500: '#401c95',
    950: '#000000',
  },
}
SCSS
$custom: #401c95;
$custom-light: #7f5eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#401c95",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 149
  },
  "hsl": {
    "h": 257.851,
    "s": 68.362,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36566,
    "c": 0.17934,
    "h": 287.3
  },
  "luminance": 0.0409
}

Semantic roles & 50–950 ramp

primary
#401C95
secondary
#9EC04D
accent
#EB3DB7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #401C95

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

Preview Lab → · Contrast checker → · Palette generator →

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