#401040#401040

#401040 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.6% C 0.099 H 327.9°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#401040
RGBrgb(64, 16, 64)
HSLhsl(300, 60%, 16%)
HSVhsv(300, 75%, 25%)
CMYKcmyk(0%, 75%, 0%, 74.9%)
CIE-LABlab(14.57, 30.09, -19.06)
CIE-LCHlch(14.57, 35.62, 327.64°)
OKLaboklab(27.65% 0.0839 -0.0527)
OKLCHoklch(27.65% 0.099 327.9)
XYZxyz(3.2250, 1.8310, 5.0330)
Luminance0.0183 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401040 #104010
analogous
#281040 #401040 #401028
triadic
#401040 #404010 #104040
tetradic
#401040 #402810 #104010 #102840
square
#401040 #402810 #104010 #102840
split-complementary
#401040 #284010 #104028
monochromatic
#180618 #180618 #401040 #711C71 #A228A2

Accessibility & contrast

On white

15.37
#401040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401040
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401040#FFFFFF#000000##FFFFFF
##4010401.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092141
Deuteranopia (green-blind)
#1C273F
Tritanopia (blue-blind)
#421726
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #401040;
/* rgb */ color: rgb(64, 16, 64);
/* oklch */ color: oklch(27.6% 0.099 327.9);
Tailwind
colors: {
  custom: {
    50: '#775375',
    500: '#401040',
    950: '#000000',
  },
}
SCSS
$custom: #401040;
$custom-light: #775375;
$custom-dark: #000000;
JSON
{
  "hex": "#401040",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 64
  },
  "hsl": {
    "h": 300,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.27646,
    "c": 0.09906,
    "h": 327.9
  },
  "luminance": 0.01831
}

Semantic roles & 50–950 ramp

primary
#401040
secondary
#327A32
accent
#E34545
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #401040

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

Preview Lab → · Contrast checker → · Palette generator →

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