#401C89#401C89

#401C89 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.166 H 290.2°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#401C89
RGBrgb(64, 28, 137)
HSLhsl(260, 66%, 32%)
HSVhsv(260, 80%, 54%)
CMYKcmyk(53.3%, 79.6%, 0%, 46.3%)
CIE-LABlab(22.75, 43.01, -54.03)
CIE-LCHlch(22.75, 69.06, 308.52°)
OKLaboklab(35.35% 0.0572 -0.1553)
OKLCHoklch(35.35% 0.166 290.2)
XYZxyz(7.0437, 3.7263, 24.0102)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C89 #65891C
analogous
#1C2E89 #401C89 #771C89
triadic
#401C89 #89401C #1C8940
tetradic
#401C89 #891C2E #65891C #1C8977
square
#401C89 #891C2E #65891C #1C8977
split-complementary
#401C89 #89771C #2E891C
monochromatic
#110723 #281256 #401C89 #5826BC #7746D9

Accessibility & contrast

On white

12.03
#401C89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#401C89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C89
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C89#FFFFFF#000000##FFFFFF
##401C891.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003487
Tritanopia (blue-blind)
#253B52
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #401c89;
/* rgb */ color: rgb(64, 28, 137);
/* oklch */ color: oklch(35.3% 0.166 290.2);
Tailwind
colors: {
  custom: {
    50: '#7d5dac',
    500: '#401c89',
    950: '#000000',
  },
}
SCSS
$custom: #401c89;
$custom-light: #7d5dac;
$custom-dark: #000000;
JSON
{
  "hex": "#401c89",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 137
  },
  "hsl": {
    "h": 259.817,
    "s": 66.061,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35348,
    "c": 0.1655,
    "h": 290.2
  },
  "luminance": 0.03727
}

Semantic roles & 50–950 ramp

primary
#401C89
secondary
#94BB46
accent
#E93FB1
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401C89

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

Preview Lab → · Contrast checker → · Palette generator →

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