#401554#401554

#401554 is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.7% C 0.113 H 312.9°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#401554
RGBrgb(64, 21, 84)
HSLhsl(281, 60%, 21%)
HSVhsv(281, 75%, 33%)
CMYKcmyk(23.8%, 75%, 0%, 67.1%)
CIE-LABlab(16.83, 32.16, -29.26)
CIE-LCHlch(16.83, 43.48, 317.71°)
OKLaboklab(29.71% 0.0768 -0.0825)
OKLCHoklch(29.71% 0.113 312.9)
XYZxyz(3.9825, 2.2665, 8.6135)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401554 #295415
analogous
#201554 #401554 #541548
triadic
#401554 #544015 #155440
tetradic
#401554 #542015 #295415 #154854
square
#401554 #542015 #295415 #154854
split-complementary
#401554 #485415 #155420
monochromatic
#130618 #1B0923 #401554 #652185 #8B2DB6

Accessibility & contrast

On white

14.45
#401554 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#401554 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401554
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401554#FFFFFF#000000##FFFFFF
##4015541.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002756
Deuteranopia (green-blind)
#102A53
Tritanopia (blue-blind)
#3E2232
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401554;
/* rgb */ color: rgb(64, 21, 84);
/* oklch */ color: oklch(29.7% 0.113 312.9);
Tailwind
colors: {
  custom: {
    50: '#775684',
    500: '#401554',
    950: '#000000',
  },
}
SCSS
$custom: #401554;
$custom-light: #775684;
$custom-dark: #000000;
JSON
{
  "hex": "#401554",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 84
  },
  "hsl": {
    "h": 280.952,
    "s": 60,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29713,
    "c": 0.11269,
    "h": 312.9
  },
  "luminance": 0.02266
}

Semantic roles & 50–950 ramp

primary
#401554
secondary
#538C39
accent
#E34577
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401554

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

Preview Lab → · Contrast checker → · Palette generator →

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