#401548#401548

#401548 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.8% C 0.099 H 321.1°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#401548
RGBrgb(64, 21, 72)
HSLhsl(291, 55%, 18%)
HSVhsv(291, 71%, 28%)
CMYKcmyk(11.1%, 70.8%, 0%, 71.8%)
CIE-LABlab(15.97, 29.34, -22.42)
CIE-LCHlch(15.97, 36.93, 322.62°)
OKLaboklab(28.83% 0.0773 -0.0625)
OKLCHoklch(28.83% 0.099 321.1)
XYZxyz(3.5521, 2.0944, 6.3468)
Luminance0.0209 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401548 #1D4815
analogous
#261548 #401548 #481536
triadic
#401548 #484015 #154840
tetradic
#401548 #482615 #1D4815 #153648
square
#401548 #482615 #1D4815 #153648
split-complementary
#401548 #364815 #154826
monochromatic
#150718 #160719 #401548 #6A2377 #9431A7

Accessibility & contrast

On white

14.80
#401548 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#401548 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401548
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401548#FFFFFF#000000##FFFFFF
##4015481.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08254A
Deuteranopia (green-blind)
#1A2947
Tritanopia (blue-blind)
#411D2C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #401548;
/* rgb */ color: rgb(64, 21, 72);
/* oklch */ color: oklch(28.8% 0.099 321.1);
Tailwind
colors: {
  custom: {
    50: '#77567b',
    500: '#401548',
    950: '#000000',
  },
}
SCSS
$custom: #401548;
$custom-light: #77567b;
$custom-dark: #000000;
JSON
{
  "hex": "#401548",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 72
  },
  "hsl": {
    "h": 290.588,
    "s": 54.839,
    "l": 18.235
  },
  "oklch": {
    "l": 0.28826,
    "c": 0.09942,
    "h": 321.1
  },
  "luminance": 0.02094
}

Semantic roles & 50–950 ramp

primary
#401548
secondary
#448039
accent
#DE4A61
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#090309
muted
#7B787B

Preview Lab

Preview with #401548

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

Preview Lab → · Contrast checker → · Palette generator →

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