#401679#401679

#401679 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.153 H 296.0°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#401679
RGBrgb(64, 22, 121)
HSLhsl(265, 69%, 28%)
HSVhsv(265, 82%, 47%)
CMYKcmyk(47.1%, 81.8%, 0%, 52.5%)
CIE-LABlab(20.22, 41.31, -48.05)
CIE-LCHlch(20.22, 63.37, 310.68°)
OKLaboklab(33.11% 0.0671 -0.1377)
OKLCHoklch(33.11% 0.153 296)
XYZxyz(5.8515, 3.0441, 18.3647)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401679 #4F7916
analogous
#161D79 #401679 #721679
triadic
#401679 #794016 #167940
tetradic
#401679 #79161D #4F7916 #167972
square
#401679 #79161D #4F7916 #167972
split-complementary
#401679 #797216 #1D7916
monochromatic
#0E051A #250D45 #401679 #5B1FAD #7830D9

Accessibility & contrast

On white

13.05
#401679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401679
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401679#FFFFFF#000000##FFFFFF
##4016791.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#303247
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401679;
/* rgb */ color: rgb(64, 22, 121);
/* oklch */ color: oklch(33.1% 0.153 296.0);
Tailwind
colors: {
  custom: {
    50: '#7b59a1',
    500: '#401679',
    950: '#000000',
  },
}
SCSS
$custom: #401679;
$custom-light: #7b59a1;
$custom-dark: #000000;
JSON
{
  "hex": "#401679",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 121
  },
  "hsl": {
    "h": 265.455,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33109,
    "c": 0.15321,
    "h": 296
  },
  "luminance": 0.03044
}

Semantic roles & 50–950 ramp

primary
#401679
secondary
#7EAE3D
accent
#EC3CA1
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401679

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

Preview Lab → · Contrast checker → · Palette generator →

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