#401D76#401D76

#401D76 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.142 H 295.7°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#401D76
RGBrgb(64, 29, 118)
HSLhsl(264, 61%, 29%)
HSVhsv(264, 75%, 46%)
CMYKcmyk(45.8%, 75.4%, 0%, 53.7%)
CIE-LABlab(21.12, 37.11, -44.66)
CIE-LCHlch(21.12, 58.07, 309.72°)
OKLaboklab(33.65% 0.0616 -0.1278)
OKLCHoklch(33.65% 0.142 295.7)
XYZxyz(5.8229, 3.2766, 17.4617)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D76 #53761D
analogous
#1D2776 #401D76 #6D1D76
triadic
#401D76 #76401D #1D7640
tetradic
#401D76 #761D27 #53761D #1D766D
square
#401D76 #761D27 #53761D #1D766D
split-complementary
#401D76 #766D1D #27761D
monochromatic
#0D0619 #251145 #401D76 #5B29A7 #773ED0

Accessibility & contrast

On white

12.69
#401D76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#401D76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D76
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D76#FFFFFF#000000##FFFFFF
##401D761.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401d76;
/* rgb */ color: rgb(64, 29, 118);
/* oklch */ color: oklch(33.7% 0.142 295.7);
Tailwind
colors: {
  custom: {
    50: '#7b5c9e',
    500: '#401d76',
    950: '#000000',
  },
}
SCSS
$custom: #401d76;
$custom-light: #7b5c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#401d76",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 118
  },
  "hsl": {
    "h": 263.596,
    "s": 60.544,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33654,
    "c": 0.14189,
    "h": 295.7
  },
  "luminance": 0.03277
}

Semantic roles & 50–950 ramp

primary
#401D76
secondary
#82AA45
accent
#E444A5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401D76

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

Preview Lab → · Contrast checker → · Palette generator →

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