#401C83#401C83

#401C83 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.159 H 291.9°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#401C83
RGBrgb(64, 28, 131)
HSLhsl(261, 65%, 31%)
HSVhsv(261, 79%, 51%)
CMYKcmyk(51.1%, 78.6%, 0%, 48.6%)
CIE-LABlab(22.16, 41.31, -51.23)
CIE-LCHlch(22.16, 65.81, 308.88°)
OKLaboklab(34.76% 0.0591 -0.1471)
OKLCHoklch(34.76% 0.159 291.9)
XYZxyz(6.6252, 3.5589, 21.8062)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C83 #5F831C
analogous
#1C2B83 #401C83 #731C83
triadic
#401C83 #83401C #1C8340
tetradic
#401C83 #831C2B #5F831C #1C8373
square
#401C83 #831C2B #5F831C #1C8373
split-complementary
#401C83 #83731C #2B831C
monochromatic
#0F061E #271151 #401C83 #5927B5 #7643D7

Accessibility & contrast

On white

12.27
#401C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#401C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C83
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C83#FFFFFF#000000##FFFFFF
##401C831.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003686
Deuteranopia (green-blind)
#003381
Tritanopia (blue-blind)
#2A394F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #401c83;
/* rgb */ color: rgb(64, 28, 131);
/* oklch */ color: oklch(34.8% 0.159 291.9);
Tailwind
colors: {
  custom: {
    50: '#7d5da8',
    500: '#401c83',
    950: '#000000',
  },
}
SCSS
$custom: #401c83;
$custom-light: #7d5da8;
$custom-dark: #000000;
JSON
{
  "hex": "#401c83",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 131
  },
  "hsl": {
    "h": 260.971,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34757,
    "c": 0.1585,
    "h": 291.9
  },
  "luminance": 0.03559
}

Semantic roles & 50–950 ramp

primary
#401C83
secondary
#8FB645
accent
#E840AD
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #401C83

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

Preview Lab → · Contrast checker → · Palette generator →

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