#401C76#401C76

#401C76 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.143 H 295.9°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#401C76
RGBrgb(64, 28, 118)
HSLhsl(264, 62%, 29%)
HSVhsv(264, 76%, 46%)
CMYKcmyk(45.8%, 76.3%, 0%, 53.7%)
CIE-LABlab(20.94, 37.63, -44.96)
CIE-LCHlch(20.94, 58.63, 309.93°)
OKLaboklab(33.53% 0.0626 -0.1287)
OKLCHoklch(33.53% 0.143 295.9)
XYZxyz(5.7988, 3.2284, 17.4536)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C76 #52761C
analogous
#1C2576 #401C76 #6D1C76
triadic
#401C76 #76401C #1C7640
tetradic
#401C76 #761C25 #52761C #1C766D
square
#401C76 #761C25 #52761C #1C766D
split-complementary
#401C76 #766D1C #25761C
monochromatic
#0D0619 #251045 #401C76 #5B28A7 #773CD1

Accessibility & contrast

On white

12.76
#401C76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#401C76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C76
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C76#FFFFFF#000000##FFFFFF
##401C761.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#003174
Tritanopia (blue-blind)
#313347
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #401c76;
/* rgb */ color: rgb(64, 28, 118);
/* oklch */ color: oklch(33.5% 0.143 295.9);
Tailwind
colors: {
  custom: {
    50: '#7b5c9e',
    500: '#401c76',
    950: '#000000',
  },
}
SCSS
$custom: #401c76;
$custom-light: #7b5c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#401c76",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 118
  },
  "hsl": {
    "h": 264,
    "s": 61.644,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33525,
    "c": 0.14311,
    "h": 295.9
  },
  "luminance": 0.03229
}

Semantic roles & 50–950 ramp

primary
#401C76
secondary
#81AA44
accent
#E543A4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401C76

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

Preview Lab → · Contrast checker → · Palette generator →

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