#401041#401041

#401041 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.7% C 0.100 H 327.0°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#401041
RGBrgb(64, 16, 65)
HSLhsl(299, 60%, 16%)
HSVhsv(299, 75%, 25%)
CMYKcmyk(1.5%, 75.4%, 0%, 74.5%)
CIE-LABlab(14.64, 30.29, -19.67)
CIE-LCHlch(14.64, 36.12, 327.01°)
OKLaboklab(27.71% 0.0839 -0.0545)
OKLCHoklch(27.71% 0.1 327)
XYZxyz(3.2537, 1.8424, 5.1843)
Luminance0.0184 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401041 #114110
analogous
#271041 #401041 #411029
triadic
#401041 #414010 #104140
tetradic
#401041 #412710 #114110 #102941
square
#401041 #412710 #114110 #102941
split-complementary
#401041 #294110 #104127
monochromatic
#180619 #180619 #401041 #701C72 #A128A3

Accessibility & contrast

On white

15.35
#401041 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#401041 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401041
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401041#FFFFFF#000000##FFFFFF
##4010411.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082142
Deuteranopia (green-blind)
#1B2740
Tritanopia (blue-blind)
#421727
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #401041;
/* rgb */ color: rgb(64, 16, 65);
/* oklch */ color: oklch(27.7% 0.100 327.0);
Tailwind
colors: {
  custom: {
    50: '#775376',
    500: '#401041',
    950: '#000000',
  },
}
SCSS
$custom: #401041;
$custom-light: #775376;
$custom-dark: #000000;
JSON
{
  "hex": "#401041",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 65
  },
  "hsl": {
    "h": 298.776,
    "s": 60.494,
    "l": 15.882
  },
  "oklch": {
    "l": 0.27713,
    "c": 0.10003,
    "h": 327
  },
  "luminance": 0.01842
}

Semantic roles & 50–950 ramp

primary
#401041
secondary
#337B32
accent
#E44447
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #401041

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

Preview Lab → · Contrast checker → · Palette generator →

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