#401C7A#401C7A

#401C7A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.148 H 294.6°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#401C7A
RGBrgb(64, 28, 122)
HSLhsl(263, 63%, 29%)
HSVhsv(263, 77%, 48%)
CMYKcmyk(47.5%, 77%, 0%, 52.2%)
CIE-LABlab(21.30, 38.76, -46.92)
CIE-LCHlch(21.30, 60.86, 309.56°)
OKLaboklab(33.9% 0.0616 -0.1345)
OKLCHoklch(33.9% 0.148 294.6)
XYZxyz(6.0415, 3.3255, 18.7321)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C7A #567A1C
analogous
#1C277A #401C7A #6F1C7A
triadic
#401C7A #7A401C #1C7A40
tetradic
#401C7A #7A1C27 #567A1C #1C7A6F
square
#401C7A #7A1C27 #567A1C #1C7A6F
split-complementary
#401C7A #7A6F1C #277A1C
monochromatic
#0D0619 #261148 #401C7A #5A27AC #773ED3

Accessibility & contrast

On white

12.61
#401C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#401C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C7A
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C7A#FFFFFF#000000##FFFFFF
##401C7A1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#2F3549
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #401c7a;
/* rgb */ color: rgb(64, 28, 122);
/* oklch */ color: oklch(33.9% 0.148 294.6);
Tailwind
colors: {
  custom: {
    50: '#7b5ca1',
    500: '#401c7a',
    950: '#000000',
  },
}
SCSS
$custom: #401c7a;
$custom-light: #7b5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#401c7a",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 122
  },
  "hsl": {
    "h": 262.979,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33896,
    "c": 0.14788,
    "h": 294.6
  },
  "luminance": 0.03326
}

Semantic roles & 50–950 ramp

primary
#401C7A
secondary
#85AE44
accent
#E642A7
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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