#401986#401986

#401986 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.165 H 291.5°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#401986
RGBrgb(64, 25, 134)
HSLhsl(261, 69%, 31%)
HSVhsv(261, 81%, 53%)
CMYKcmyk(52.2%, 81.3%, 0%, 47.5%)
CIE-LABlab(21.97, 43.55, -53.43)
CIE-LCHlch(21.97, 68.93, 309.18°)
OKLaboklab(34.72% 0.0605 -0.1535)
OKLCHoklch(34.72% 0.165 291.5)
XYZxyz(6.7638, 3.5062, 22.8700)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401986 #5F8619
analogous
#192886 #401986 #761986
triadic
#401986 #864019 #198640
tetradic
#401986 #861928 #5F8619 #198676
square
#401986 #861928 #5F8619 #198676
split-complementary
#401986 #867619 #288619
monochromatic
#0F061F #270F52 #401986 #5923BA #763EDB

Accessibility & contrast

On white

12.34
#401986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#401986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401986
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401986#FFFFFF#000000##FFFFFF
##4019861.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#003284
Tritanopia (blue-blind)
#283850
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #401986;
/* rgb */ color: rgb(64, 25, 134);
/* oklch */ color: oklch(34.7% 0.165 291.5);
Tailwind
colors: {
  custom: {
    50: '#7d5baa',
    500: '#401986',
    950: '#000000',
  },
}
SCSS
$custom: #401986;
$custom-light: #7d5baa;
$custom-dark: #000000;
JSON
{
  "hex": "#401986",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 261.468,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34715,
    "c": 0.16499,
    "h": 291.5
  },
  "luminance": 0.03506
}

Semantic roles & 50–950 ramp

primary
#401986
secondary
#8FBA41
accent
#EB3CAD
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401986

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

Preview Lab → · Contrast checker → · Palette generator →

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