#401790#401790

#401790 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.178 H 289.1°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#401790
RGBrgb(64, 23, 144)
HSLhsl(260, 72%, 33%)
HSVhsv(260, 84%, 56%)
CMYKcmyk(55.6%, 84%, 0%, 43.5%)
CIE-LABlab(22.71, 47.16, -58.45)
CIE-LCHlch(22.71, 75.10, 308.90°)
OKLaboklab(35.54% 0.0583 -0.1682)
OKLCHoklch(35.54% 0.178 289.1)
XYZxyz(7.4533, 3.7160, 26.7047)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401790 #679017
analogous
#172A90 #401790 #7D1790
triadic
#401790 #904017 #179040
tetradic
#401790 #90172A #679017 #17907D
square
#401790 #90172A #679017 #17907D
split-complementary
#401790 #907D17 #2A9017
monochromatic
#110626 #290F5B #401790 #571FC5 #7741E1

Accessibility & contrast

On white

12.05
#401790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#401790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401790
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401790#FFFFFF#000000##FFFFFF
##4017901.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003993
Deuteranopia (green-blind)
#00338E
Tritanopia (blue-blind)
#1F3C55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #401790;
/* rgb */ color: rgb(64, 23, 144);
/* oklch */ color: oklch(35.5% 0.178 289.1);
Tailwind
colors: {
  custom: {
    50: '#7f5bb2',
    500: '#401790',
    950: '#000000',
  },
}
SCSS
$custom: #401790;
$custom-light: #7f5bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#401790",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 260.331,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3554,
    "c": 0.17799,
    "h": 289.1
  },
  "luminance": 0.03716
}

Semantic roles & 50–950 ramp

primary
#401790
secondary
#96C142
accent
#EF39B1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #401790

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

Preview Lab → · Contrast checker → · Palette generator →

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