#401C71#401C71

#401C71 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.137 H 297.7°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#401C71
RGBrgb(64, 28, 113)
HSLhsl(265, 60%, 28%)
HSVhsv(265, 75%, 44%)
CMYKcmyk(43.4%, 75.2%, 0%, 55.7%)
CIE-LABlab(20.49, 36.22, -42.47)
CIE-LCHlch(20.49, 55.82, 310.46°)
OKLaboklab(33.07% 0.0637 -0.1214)
OKLCHoklch(33.07% 0.137 297.7)
XYZxyz(5.5095, 3.1127, 15.9301)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C71 #4D711C
analogous
#1C2271 #401C71 #6B1C71
triadic
#401C71 #71401C #1C7140
tetradic
#401C71 #711C22 #4D711C #1C716B
square
#401C71 #711C22 #4D711C #1C716B
split-complementary
#401C71 #716B1C #22711C
monochromatic
#0E0619 #241040 #401C71 #5C28A2 #7839CE

Accessibility & contrast

On white

12.94
#401C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#401C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C71
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C71#FFFFFF#000000##FFFFFF
##401C711.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#00306F
Tritanopia (blue-blind)
#343144
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401c71;
/* rgb */ color: rgb(64, 28, 113);
/* oklch */ color: oklch(33.1% 0.137 297.7);
Tailwind
colors: {
  custom: {
    50: '#7a5c9b',
    500: '#401c71',
    950: '#000000',
  },
}
SCSS
$custom: #401c71;
$custom-light: #7a5c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#401c71",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 113
  },
  "hsl": {
    "h": 265.412,
    "s": 60.284,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3307,
    "c": 0.13711,
    "h": 297.7
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

primary
#401C71
secondary
#7CA643
accent
#E344A0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401C71

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

Preview Lab → · Contrast checker → · Palette generator →

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