#401678#401678

#401678 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.152 H 296.3°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#401678
RGBrgb(64, 22, 120)
HSLhsl(266, 69%, 28%)
HSVhsv(266, 82%, 47%)
CMYKcmyk(46.7%, 81.7%, 0%, 52.9%)
CIE-LABlab(20.12, 41.04, -47.57)
CIE-LCHlch(20.12, 62.83, 310.78°)
OKLaboklab(33.01% 0.0674 -0.1363)
OKLCHoklch(33.01% 0.152 296.3)
XYZxyz(5.7905, 3.0197, 18.0434)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401678 #4E7816
analogous
#161D78 #401678 #711678
triadic
#401678 #784016 #167840
tetradic
#401678 #78161D #4E7816 #167871
square
#401678 #78161D #4E7816 #167871
split-complementary
#401678 #787116 #1D7816
monochromatic
#0E051A #240D44 #401678 #5C1FAC #782FD9

Accessibility & contrast

On white

13.09
#401678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#401678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401678
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401678#FFFFFF#000000##FFFFFF
##4016781.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#313147
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401678;
/* rgb */ color: rgb(64, 22, 120);
/* oklch */ color: oklch(33.0% 0.152 296.3);
Tailwind
colors: {
  custom: {
    50: '#7b59a0',
    500: '#401678',
    950: '#000000',
  },
}
SCSS
$custom: #401678;
$custom-light: #7b59a0;
$custom-dark: #000000;
JSON
{
  "hex": "#401678",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 265.714,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33012,
    "c": 0.15209,
    "h": 296.3
  },
  "luminance": 0.0302
}

Semantic roles & 50–950 ramp

primary
#401678
secondary
#7DAD3C
accent
#EC3CA0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #401678

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

Preview Lab → · Contrast checker → · Palette generator →

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