#401C75#401C75

#401C75 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.142 H 296.3°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#401C75
RGBrgb(64, 28, 117)
HSLhsl(264, 61%, 28%)
HSVhsv(264, 76%, 46%)
CMYKcmyk(45.3%, 76.1%, 0%, 54.1%)
CIE-LABlab(20.85, 37.35, -44.47)
CIE-LCHlch(20.85, 58.07, 310.03°)
OKLaboklab(33.43% 0.0628 -0.1273)
OKLCHoklch(33.43% 0.142 296.3)
XYZxyz(5.7396, 3.2047, 17.1423)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C75 #51751C
analogous
#1C2475 #401C75 #6C1C75
triadic
#401C75 #75401C #1C7540
tetradic
#401C75 #751C24 #51751C #1C756C
square
#401C75 #751C24 #51751C #1C756C
split-complementary
#401C75 #756C1C #24751C
monochromatic
#0E0619 #251044 #401C75 #5B28A6 #773BD0

Accessibility & contrast

On white

12.80
#401C75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#401C75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C75
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C75#FFFFFF#000000##FFFFFF
##401C751.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003378
Deuteranopia (green-blind)
#003173
Tritanopia (blue-blind)
#323347
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #401c75;
/* rgb */ color: rgb(64, 28, 117);
/* oklch */ color: oklch(33.4% 0.142 296.3);
Tailwind
colors: {
  custom: {
    50: '#7a5c9e',
    500: '#401c75',
    950: '#000000',
  },
}
SCSS
$custom: #401c75;
$custom-light: #7a5c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#401c75",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 117
  },
  "hsl": {
    "h": 264.27,
    "s": 61.379,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33433,
    "c": 0.14191,
    "h": 296.3
  },
  "luminance": 0.03205
}

Semantic roles & 50–950 ramp

primary
#401C75
secondary
#80A944
accent
#E443A3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401C75

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

Preview Lab → · Contrast checker → · Palette generator →

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