#401A4E#401A4E

#401A4E is a dark, moderate purple. Relative luminance 0.024; OKLCH L 30.0% C 0.098 H 315.9°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#401A4E
RGBrgb(64, 26, 78)
HSLhsl(284, 50%, 20%)
HSVhsv(284, 67%, 31%)
CMYKcmyk(17.9%, 66.7%, 0%, 69.4%)
CIE-LABlab(17.36, 28.04, -24.33)
CIE-LCHlch(17.36, 37.12, 319.06°)
OKLaboklab(29.96% 0.0703 -0.0681)
OKLCHoklch(29.96% 0.098 315.9)
XYZxyz(3.8587, 2.3790, 7.4622)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401A4E #284E1A
analogous
#261A4E #401A4E #4E1A42
triadic
#401A4E #4E401A #1A4E40
tetradic
#401A4E #4E261A #284E1A #1A424E
square
#401A4E #4E261A #284E1A #1A424E
split-complementary
#401A4E #424E1A #1A4E26
monochromatic
#130817 #1A0B20 #401A4E #66297C #8B39AA

Accessibility & contrast

On white

14.23
#401A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#401A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401A4E
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401A4E#FFFFFF#000000##FFFFFF
##401A4E1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2850
Deuteranopia (green-blind)
#1A2C4D
Tritanopia (blue-blind)
#3F2331
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401a4e;
/* rgb */ color: rgb(64, 26, 78);
/* oklch */ color: oklch(30.0% 0.098 315.9);
Tailwind
colors: {
  custom: {
    50: '#775980',
    500: '#401a4e',
    950: '#000000',
  },
}
SCSS
$custom: #401a4e;
$custom-light: #775980;
$custom-dark: #000000;
JSON
{
  "hex": "#401a4e",
  "rgb": {
    "r": 64,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 283.846,
    "s": 50,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29961,
    "c": 0.09785,
    "h": 315.9
  },
  "luminance": 0.02379
}

Semantic roles & 50–950 ramp

primary
#401A4E
secondary
#528440
accent
#DA4E74
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09040A
muted
#7B797C

Preview Lab

Preview with #401A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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