#401642#401642

#401642 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.6% C 0.091 H 325.8°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#401642
RGBrgb(64, 22, 66)
HSLhsl(297, 50%, 17%)
HSVhsv(297, 67%, 26%)
CMYKcmyk(3%, 66.7%, 0%, 74.1%)
CIE-LABlab(15.79, 27.49, -18.55)
CIE-LCHlch(15.79, 33.16, 325.99°)
OKLaboklab(28.57% 0.0756 -0.0513)
OKLCHoklch(28.57% 0.091 325.8)
XYZxyz(3.3846, 2.0574, 5.3720)
Luminance0.0206 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401642 #184216
analogous
#2A1642 #401642 #42162E
triadic
#401642 #424016 #164240
tetradic
#401642 #422A16 #184216 #162E42
square
#401642 #422A16 #184216 #162E42
split-complementary
#401642 #2E4216 #16422A
monochromatic
#160817 #160817 #401642 #6D2570 #99359E

Accessibility & contrast

On white

14.88
#401642 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#401642 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401642
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401642#FFFFFF#000000##FFFFFF
##4016421.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102443
Deuteranopia (green-blind)
#1E2941
Tritanopia (blue-blind)
#421C29
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #401642;
/* rgb */ color: rgb(64, 22, 66);
/* oklch */ color: oklch(28.6% 0.091 325.8);
Tailwind
colors: {
  custom: {
    50: '#765676',
    500: '#401642',
    950: '#000000',
  },
}
SCSS
$custom: #401642;
$custom-light: #765676;
$custom-dark: #000000;
JSON
{
  "hex": "#401642",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 66
  },
  "hsl": {
    "h": 297.273,
    "s": 50,
    "l": 17.255
  },
  "oklch": {
    "l": 0.28565,
    "c": 0.09132,
    "h": 325.8
  },
  "luminance": 0.02057
}

Semantic roles & 50–950 ramp

primary
#401642
secondary
#3D793A
accent
#DA4E55
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #401642

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

Preview Lab → · Contrast checker → · Palette generator →

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