#401978#401978

#401978 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.149 H 295.8°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#401978
RGBrgb(64, 25, 120)
HSLhsl(265, 66%, 28%)
HSVhsv(265, 79%, 47%)
CMYKcmyk(46.7%, 79.2%, 0%, 52.9%)
CIE-LABlab(20.60, 39.66, -46.79)
CIE-LCHlch(20.60, 61.34, 310.29°)
OKLaboklab(33.35% 0.0648 -0.1341)
OKLCHoklch(33.35% 0.149 295.8)
XYZxyz(5.8512, 3.1412, 18.0637)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401978 #517819
analogous
#192178 #401978 #6F1978
triadic
#401978 #784019 #197840
tetradic
#401978 #781921 #517819 #19786F
square
#401978 #781921 #517819 #19786F
split-complementary
#401978 #786F19 #217819
monochromatic
#0E0519 #250E45 #401978 #5B24AB #7736D5

Accessibility & contrast

On white

12.90
#401978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#401978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401978
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401978#FFFFFF#000000##FFFFFF
##4019781.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#003076
Tritanopia (blue-blind)
#303348
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #401978;
/* rgb */ color: rgb(64, 25, 120);
/* oklch */ color: oklch(33.3% 0.149 295.8);
Tailwind
colors: {
  custom: {
    50: '#7b5aa0',
    500: '#401978',
    950: '#000000',
  },
}
SCSS
$custom: #401978;
$custom-light: #7b5aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#401978",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 264.632,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33346,
    "c": 0.14892,
    "h": 295.8
  },
  "luminance": 0.03141
}

Semantic roles & 50–950 ramp

primary
#401978
secondary
#80AD40
accent
#E83FA3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #401978

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

Preview Lab → · Contrast checker → · Palette generator →

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