#401778#401778

#401778 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.151 H 296.2°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#401778
RGBrgb(64, 23, 120)
HSLhsl(265, 68%, 28%)
HSVhsv(265, 81%, 47%)
CMYKcmyk(46.7%, 80.8%, 0%, 52.9%)
CIE-LABlab(20.28, 40.59, -47.32)
CIE-LCHlch(20.28, 62.35, 310.62°)
OKLaboklab(33.12% 0.0666 -0.1356)
OKLCHoklch(33.12% 0.151 296.2)
XYZxyz(5.8100, 3.0587, 18.0499)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401778 #4F7817
analogous
#171E78 #401778 #701778
triadic
#401778 #784017 #177840
tetradic
#401778 #78171E #4F7817 #177870
square
#401778 #78171E #4F7817 #177870
split-complementary
#401778 #787017 #1E7817
monochromatic
#0E051A #250D45 #401778 #5B21AB #7832D8

Accessibility & contrast

On white

13.03
#401778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#401778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401778
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401778#FFFFFF#000000##FFFFFF
##4017781.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#003076
Tritanopia (blue-blind)
#313247
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401778;
/* rgb */ color: rgb(64, 23, 120);
/* oklch */ color: oklch(33.1% 0.151 296.2);
Tailwind
colors: {
  custom: {
    50: '#7b59a0',
    500: '#401778',
    950: '#000000',
  },
}
SCSS
$custom: #401778;
$custom-light: #7b59a0;
$custom-dark: #000000;
JSON
{
  "hex": "#401778",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 265.361,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3312,
    "c": 0.15105,
    "h": 296.2
  },
  "luminance": 0.03059
}

Semantic roles & 50–950 ramp

primary
#401778
secondary
#7EAD3E
accent
#EB3DA1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #401778

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

Preview Lab → · Contrast checker → · Palette generator →

#401778 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva