#401048#401048

#401048 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.2% C 0.107 H 321.6°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#401048
RGBrgb(64, 16, 72)
HSLhsl(291, 64%, 17%)
HSVhsv(291, 78%, 28%)
CMYKcmyk(11.1%, 77.8%, 0%, 71.8%)
CIE-LABlab(15.11, 31.77, -23.80)
CIE-LCHlch(15.11, 39.70, 323.16°)
OKLaboklab(28.2% 0.0839 -0.0665)
OKLCHoklch(28.2% 0.107 321.6)
XYZxyz(3.4692, 1.9286, 6.3192)
Luminance0.0193 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401048 #184810
analogous
#241048 #401048 #481034
triadic
#401048 #484010 #104840
tetradic
#401048 #482410 #184810 #103448
square
#401048 #482410 #184810 #103448
split-complementary
#401048 #344810 #104824
monochromatic
#160619 #160619 #401048 #6D1B7A #9926AC

Accessibility & contrast

On white

15.16
#401048 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#401048 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401048
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401048#FFFFFF#000000##FFFFFF
##4010481.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224A
Deuteranopia (green-blind)
#172847
Tritanopia (blue-blind)
#411A2A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #401048;
/* rgb */ color: rgb(64, 16, 72);
/* oklch */ color: oklch(28.2% 0.107 321.6);
Tailwind
colors: {
  custom: {
    50: '#77537b',
    500: '#401048',
    950: '#000000',
  },
}
SCSS
$custom: #401048;
$custom-light: #77537b;
$custom-dark: #000000;
JSON
{
  "hex": "#401048",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 72
  },
  "hsl": {
    "h": 291.429,
    "s": 63.636,
    "l": 17.255
  },
  "oklch": {
    "l": 0.28203,
    "c": 0.10702,
    "h": 321.6
  },
  "luminance": 0.01928
}

Semantic roles & 50–950 ramp

primary
#401048
secondary
#3D8232
accent
#E74159
background
#F7F4F7
surface
#EDE8EE
border
#C8C4C9
text
#090309
muted
#7B787B

Preview Lab

Preview with #401048

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

Preview Lab → · Contrast checker → · Palette generator →

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