#401C77#401C77

#401C77 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.144 H 295.6°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#401C77
RGBrgb(64, 28, 119)
HSLhsl(264, 62%, 29%)
HSVhsv(264, 76%, 47%)
CMYKcmyk(46.2%, 76.5%, 0%, 53.3%)
CIE-LABlab(21.03, 37.91, -45.45)
CIE-LCHlch(21.03, 59.19, 309.83°)
OKLaboklab(33.62% 0.0623 -0.1301)
OKLCHoklch(33.62% 0.144 295.6)
XYZxyz(5.8585, 3.2523, 17.7683)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C77 #53771C
analogous
#1C2677 #401C77 #6E1C77
triadic
#401C77 #77401C #1C7740
tetradic
#401C77 #771C26 #53771C #1C776E
square
#401C77 #771C26 #53771C #1C776E
split-complementary
#401C77 #776E1C #26771C
monochromatic
#0D0619 #251045 #401C77 #5B28A9 #773CD1

Accessibility & contrast

On white

12.72
#401C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401C77
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C77#FFFFFF#000000##FFFFFF
##401C771.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#003175
Tritanopia (blue-blind)
#313448
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #401c77;
/* rgb */ color: rgb(64, 28, 119);
/* oklch */ color: oklch(33.6% 0.144 295.6);
Tailwind
colors: {
  custom: {
    50: '#7b5c9f',
    500: '#401c77',
    950: '#000000',
  },
}
SCSS
$custom: #401c77;
$custom-light: #7b5c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#401c77",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 119
  },
  "hsl": {
    "h": 263.736,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33617,
    "c": 0.1443,
    "h": 295.6
  },
  "luminance": 0.03252
}

Semantic roles & 50–950 ramp

primary
#401C77
secondary
#82AB44
accent
#E543A5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #401C77

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

Preview Lab → · Contrast checker → · Palette generator →

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