#401890#401890

#401890 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.177 H 289.0°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#401890
RGBrgb(64, 24, 144)
HSLhsl(260, 71%, 33%)
HSVhsv(260, 83%, 56%)
CMYKcmyk(55.6%, 83.3%, 0%, 43.5%)
CIE-LABlab(22.85, 46.75, -58.22)
CIE-LCHlch(22.85, 74.67, 308.77°)
OKLaboklab(35.64% 0.0577 -0.1675)
OKLCHoklch(35.64% 0.177 289)
XYZxyz(7.4736, 3.7565, 26.7114)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401890 #689018
analogous
#182C90 #401890 #7C1890
triadic
#401890 #904018 #189040
tetradic
#401890 #90182C #689018 #18907C
square
#401890 #90182C #689018 #18907C
split-complementary
#401890 #907C18 #2C9018
monochromatic
#110727 #290F5C #401890 #5721C4 #7743E0

Accessibility & contrast

On white

11.99
#401890 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#401890 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401890
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401890#FFFFFF#000000##FFFFFF
##4018901.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401890;
/* rgb */ color: rgb(64, 24, 144);
/* oklch */ color: oklch(35.6% 0.177 289.0);
Tailwind
colors: {
  custom: {
    50: '#7f5bb2',
    500: '#401890',
    950: '#000000',
  },
}
SCSS
$custom: #401890;
$custom-light: #7f5bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#401890",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 144
  },
  "hsl": {
    "h": 260,
    "s": 71.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35636,
    "c": 0.17717,
    "h": 289
  },
  "luminance": 0.03757
}

Semantic roles & 50–950 ramp

primary
#401890
secondary
#97C043
accent
#EE3AB2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #401890

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

Preview Lab → · Contrast checker → · Palette generator →

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