#401042#401042

#401042 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.8% C 0.101 H 326.2°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#401042
RGBrgb(64, 16, 66)
HSLhsl(298, 61%, 16%)
HSVhsv(298, 76%, 26%)
CMYKcmyk(3%, 75.8%, 0%, 74.1%)
CIE-LABlab(14.70, 30.50, -20.26)
CIE-LCHlch(14.70, 36.62, 326.40°)
OKLaboklab(27.78% 0.0839 -0.0562)
OKLCHoklch(27.78% 0.101 326.2)
XYZxyz(3.2829, 1.8541, 5.3382)
Luminance0.0185 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401042 #124210
analogous
#271042 #401042 #42102B
triadic
#401042 #424010 #104240
tetradic
#401042 #422710 #124210 #102B42
square
#401042 #422710 #124210 #102B42
split-complementary
#401042 #2B4210 #104227
monochromatic
#180619 #180619 #401042 #701C73 #A028A5

Accessibility & contrast

On white

15.32
#401042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401042
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401042#FFFFFF#000000##FFFFFF
##4010421.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401042;
/* rgb */ color: rgb(64, 16, 66);
/* oklch */ color: oklch(27.8% 0.101 326.2);
Tailwind
colors: {
  custom: {
    50: '#775376',
    500: '#401042',
    950: '#000000',
  },
}
SCSS
$custom: #401042;
$custom-light: #775376;
$custom-dark: #000000;
JSON
{
  "hex": "#401042",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 66
  },
  "hsl": {
    "h": 297.6,
    "s": 60.976,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27781,
    "c": 0.10102,
    "h": 326.2
  },
  "luminance": 0.01854
}

Semantic roles & 50–950 ramp

primary
#401042
secondary
#357C32
accent
#E4444A
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #401042

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

Preview Lab → · Contrast checker → · Palette generator →

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