#401A89#401A89

#401A89 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.167 H 290.5°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#401A89
RGBrgb(64, 26, 137)
HSLhsl(261, 68%, 32%)
HSVhsv(261, 81%, 54%)
CMYKcmyk(53.3%, 81%, 0%, 46.3%)
CIE-LABlab(22.42, 43.94, -54.55)
CIE-LCHlch(22.42, 70.05, 308.85°)
OKLaboklab(35.13% 0.0588 -0.1568)
OKLCHoklch(35.13% 0.167 290.5)
XYZxyz(6.9978, 3.6346, 23.9949)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A89 #63891A
analogous
#1A2B89 #401A89 #781A89
triadic
#401A89 #89401A #1A8940
tetradic
#401A89 #891A2B #63891A #1A8978
square
#401A89 #891A2B #63891A #1A8978
split-complementary
#401A89 #89781A #2B891A
monochromatic
#100622 #281056 #401A89 #5824BC #7742DB

Accessibility & contrast

On white

12.16
#401A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#401A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A89
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A89#FFFFFF#000000##FFFFFF
##401A891.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#003387
Tritanopia (blue-blind)
#253A52
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #401a89;
/* rgb */ color: rgb(64, 26, 137);
/* oklch */ color: oklch(35.1% 0.167 290.5);
Tailwind
colors: {
  custom: {
    50: '#7e5cac',
    500: '#401a89',
    950: '#000000',
  },
}
SCSS
$custom: #401a89;
$custom-light: #7e5cac;
$custom-dark: #000000;
JSON
{
  "hex": "#401a89",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 260.541,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35125,
    "c": 0.16745,
    "h": 290.5
  },
  "luminance": 0.03635
}

Semantic roles & 50–950 ramp

primary
#401A89
secondary
#93BC43
accent
#EB3DAF
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401A89

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

Preview Lab → · Contrast checker → · Palette generator →

#401A89 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva