#401C93#401C93

#401C93 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.177 H 287.8°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#401C93
RGBrgb(64, 28, 147)
HSLhsl(258, 68%, 34%)
HSVhsv(258, 81%, 58%)
CMYKcmyk(56.5%, 81%, 0%, 42.4%)
CIE-LABlab(23.76, 45.85, -58.58)
CIE-LCHlch(23.76, 74.39, 308.05°)
OKLaboklab(36.36% 0.054 -0.1686)
OKLCHoklch(36.36% 0.177 287.8)
XYZxyz(7.7945, 4.0267, 27.9646)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C93 #6F931C
analogous
#1C3493 #401C93 #7C1C93
triadic
#401C93 #93401C #1C9340
tetradic
#401C93 #931C34 #6F931C #1C937C
square
#401C93 #931C34 #6F931C #1C937C
split-complementary
#401C93 #937C1C #34931C
monochromatic
#13082C #2A1260 #401C93 #5626C6 #784CDD

Accessibility & contrast

On white

11.63
#401C93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401C93
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C93#FFFFFF#000000##FFFFFF
##401C931.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B96
Deuteranopia (green-blind)
#003591
Tritanopia (blue-blind)
#1C3F58
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #401c93;
/* rgb */ color: rgb(64, 28, 147);
/* oklch */ color: oklch(36.4% 0.177 287.8);
Tailwind
colors: {
  custom: {
    50: '#7f5eb4',
    500: '#401c93',
    950: '#000000',
  },
}
SCSS
$custom: #401c93;
$custom-light: #7f5eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#401c93",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 147
  },
  "hsl": {
    "h": 258.151,
    "s": 68,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3636,
    "c": 0.17705,
    "h": 287.8
  },
  "luminance": 0.04027
}

Semantic roles & 50–950 ramp

primary
#401C93
secondary
#9CBF4C
accent
#EB3DB6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #401C93

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

Preview Lab → · Contrast checker → · Palette generator →

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