#401886#401886

#401886 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.166 H 291.6°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#401886
RGBrgb(64, 24, 134)
HSLhsl(262, 70%, 31%)
HSVhsv(262, 82%, 53%)
CMYKcmyk(52.2%, 82.1%, 0%, 47.5%)
CIE-LABlab(21.81, 43.99, -53.68)
CIE-LCHlch(21.81, 69.40, 309.34°)
OKLaboklab(34.61% 0.0612 -0.1542)
OKLCHoklch(34.61% 0.166 291.6)
XYZxyz(6.7428, 3.4642, 22.8630)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401886 #5E8618
analogous
#182786 #401886 #771886
triadic
#401886 #864018 #188640
tetradic
#401886 #861827 #5E8618 #188677
square
#401886 #861827 #5E8618 #188677
split-complementary
#401886 #867718 #278618
monochromatic
#0E051E #270F52 #401886 #5921BA #763CDC

Accessibility & contrast

On white

12.41
#401886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#401886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401886
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401886#FFFFFF#000000##FFFFFF
##4018861.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#003284
Tritanopia (blue-blind)
#28384F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401886;
/* rgb */ color: rgb(64, 24, 134);
/* oklch */ color: oklch(34.6% 0.166 291.6);
Tailwind
colors: {
  custom: {
    50: '#7d5baa',
    500: '#401886',
    950: '#000000',
  },
}
SCSS
$custom: #401886;
$custom-light: #7d5baa;
$custom-dark: #000000;
JSON
{
  "hex": "#401886",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 261.818,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3461,
    "c": 0.16592,
    "h": 291.6
  },
  "luminance": 0.03464
}

Semantic roles & 50–950 ramp

primary
#401886
secondary
#8DBA40
accent
#EC3BAC
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401886

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

Preview Lab → · Contrast checker → · Palette generator →

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