#401E78#401E78

#401E78 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.143 H 294.8°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#401E78
RGBrgb(64, 30, 120)
HSLhsl(263, 60%, 29%)
HSVhsv(263, 75%, 47%)
CMYKcmyk(46.7%, 75%, 0%, 52.9%)
CIE-LABlab(21.48, 37.16, -45.34)
CIE-LCHlch(21.48, 58.62, 309.33°)
OKLaboklab(33.97% 0.0601 -0.1298)
OKLCHoklch(33.97% 0.143 294.8)
XYZxyz(5.9679, 3.3744, 18.1026)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E78 #56781E
analogous
#1E2978 #401E78 #6D1E78
triadic
#401E78 #78401E #1E7840
tetradic
#401E78 #781E29 #56781E #1E786D
square
#401E78 #781E29 #56781E #1E786D
split-complementary
#401E78 #786D1E #29781E
monochromatic
#0D0618 #261247 #401E78 #5A2AA9 #7741CF

Accessibility & contrast

On white

12.54
#401E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#401E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E78
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E78#FFFFFF#000000##FFFFFF
##401E781.0012.541.6812.54
#FFFFFF12.541.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#003276
Tritanopia (blue-blind)
#303549
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401e78;
/* rgb */ color: rgb(64, 30, 120);
/* oklch */ color: oklch(34.0% 0.143 294.8);
Tailwind
colors: {
  custom: {
    50: '#7b5da0',
    500: '#401e78',
    950: '#000000',
  },
}
SCSS
$custom: #401e78;
$custom-light: #7b5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#401e78",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 120
  },
  "hsl": {
    "h": 262.667,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33969,
    "c": 0.14309,
    "h": 294.8
  },
  "luminance": 0.03375
}

Semantic roles & 50–950 ramp

primary
#401E78
secondary
#85AC46
accent
#E345A7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #401E78

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

Preview Lab → · Contrast checker → · Palette generator →

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