#401D83#401D83

#401D83 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.157 H 291.7°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#401D83
RGBrgb(64, 29, 131)
HSLhsl(261, 64%, 31%)
HSVhsv(261, 78%, 51%)
CMYKcmyk(51.1%, 77.9%, 0%, 48.6%)
CIE-LABlab(22.33, 40.82, -50.95)
CIE-LCHlch(22.33, 65.28, 308.70°)
OKLaboklab(34.88% 0.0582 -0.1463)
OKLCHoklch(34.88% 0.157 291.7)
XYZxyz(6.6493, 3.6072, 21.8142)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D83 #60831D
analogous
#1D2D83 #401D83 #731D83
triadic
#401D83 #83401D #1D8340
tetradic
#401D83 #831D2D #60831D #1D8373
square
#401D83 #831D2D #60831D #1D8373
split-complementary
#401D83 #83731D #2D831D
monochromatic
#0F071F #281251 #401D83 #5828B5 #7645D6

Accessibility & contrast

On white

12.20
#401D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#401D83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D83
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D83#FFFFFF#000000##FFFFFF
##401D831.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401d83;
/* rgb */ color: rgb(64, 29, 131);
/* oklch */ color: oklch(34.9% 0.157 291.7);
Tailwind
colors: {
  custom: {
    50: '#7c5da8',
    500: '#401d83',
    950: '#000000',
  },
}
SCSS
$custom: #401d83;
$custom-light: #7c5da8;
$custom-dark: #000000;
JSON
{
  "hex": "#401d83",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 131
  },
  "hsl": {
    "h": 260.588,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34877,
    "c": 0.15743,
    "h": 291.7
  },
  "luminance": 0.03607
}

Semantic roles & 50–950 ramp

primary
#401D83
secondary
#90B646
accent
#E741AE
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #401D83

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

Preview Lab → · Contrast checker → · Palette generator →

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