#401885#401885

#401885 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.165 H 291.9°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#401885
RGBrgb(64, 24, 133)
HSLhsl(262, 69%, 31%)
HSVhsv(262, 82%, 52%)
CMYKcmyk(51.9%, 82%, 0%, 47.8%)
CIE-LABlab(21.71, 43.71, -53.21)
CIE-LCHlch(21.71, 68.87, 309.40°)
OKLaboklab(34.51% 0.0616 -0.1529)
OKLCHoklch(34.51% 0.165 291.9)
XYZxyz(6.6734, 3.4365, 22.4974)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401885 #5D8518
analogous
#182785 #401885 #761885
triadic
#401885 #854018 #188540
tetradic
#401885 #851827 #5D8518 #188576
square
#401885 #851827 #5D8518 #188576
split-complementary
#401885 #857618 #278518
monochromatic
#0E051D #270F51 #401885 #5921B9 #763CDC

Accessibility & contrast

On white

12.45
#401885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#401885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401885
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401885#FFFFFF#000000##FFFFFF
##4018851.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#003283
Tritanopia (blue-blind)
#29384F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401885;
/* rgb */ color: rgb(64, 24, 133);
/* oklch */ color: oklch(34.5% 0.165 291.9);
Tailwind
colors: {
  custom: {
    50: '#7d5baa',
    500: '#401885',
    950: '#000000',
  },
}
SCSS
$custom: #401885;
$custom-light: #7d5baa;
$custom-dark: #000000;
JSON
{
  "hex": "#401885",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 262.018,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34509,
    "c": 0.1648,
    "h": 291.9
  },
  "luminance": 0.03437
}

Semantic roles & 50–950 ramp

primary
#401885
secondary
#8CB940
accent
#EC3CAB
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #401885

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

Preview Lab → · Contrast checker → · Palette generator →

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