#401785#401785

#401785 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.166 H 292.1°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#401785
RGBrgb(64, 23, 133)
HSLhsl(262, 71%, 31%)
HSVhsv(262, 83%, 52%)
CMYKcmyk(51.9%, 82.7%, 0%, 47.8%)
CIE-LABlab(21.56, 44.15, -53.46)
CIE-LCHlch(21.56, 69.33, 309.55°)
OKLaboklab(34.41% 0.0623 -0.1536)
OKLCHoklch(34.41% 0.166 292.1)
XYZxyz(6.6532, 3.3960, 22.4907)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401785 #5C8517
analogous
#172585 #401785 #771785
triadic
#401785 #854017 #178540
tetradic
#401785 #851725 #5C8517 #178577
square
#401785 #851725 #5C8517 #178577
split-complementary
#401785 #857717 #258517
monochromatic
#0E051D #270E51 #401785 #5920B9 #763ADD

Accessibility & contrast

On white

12.51
#401785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#401785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401785
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401785#FFFFFF#000000##FFFFFF
##4017851.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#29374F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401785;
/* rgb */ color: rgb(64, 23, 133);
/* oklch */ color: oklch(34.4% 0.166 292.1);
Tailwind
colors: {
  custom: {
    50: '#7d5aaa',
    500: '#401785',
    950: '#000000',
  },
}
SCSS
$custom: #401785;
$custom-light: #7d5aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#401785",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 262.364,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34406,
    "c": 0.16572,
    "h": 292.1
  },
  "luminance": 0.03396
}

Semantic roles & 50–950 ramp

primary
#401785
secondary
#8BB93F
accent
#ED3BAB
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401785

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

Preview Lab → · Contrast checker → · Palette generator →

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