#401640#401640

#401640 is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.4% C 0.089 H 327.6°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#401640
RGBrgb(64, 22, 64)
HSLhsl(300, 49%, 17%)
HSVhsv(300, 66%, 25%)
CMYKcmyk(0%, 65.6%, 0%, 74.9%)
CIE-LABlab(15.67, 27.06, -17.34)
CIE-LCHlch(15.67, 32.14, 327.35°)
OKLaboklab(28.44% 0.0753 -0.0478)
OKLCHoklch(28.44% 0.089 327.6)
XYZxyz(3.3266, 2.0342, 5.0669)
Luminance0.0203 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401640 #164016
analogous
#2B1640 #401640 #40162B
triadic
#401640 #404016 #164040
tetradic
#401640 #402B16 #164016 #162B40
square
#401640 #402B16 #164016 #162B40
split-complementary
#401640 #2B4016 #16402B
monochromatic
#170817 #170817 #401640 #6E266E #9B359B

Accessibility & contrast

On white

14.93
#401640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401640
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401640#FFFFFF#000000##FFFFFF
##4016401.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112441
Deuteranopia (green-blind)
#1F293F
Tritanopia (blue-blind)
#421B28
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #401640;
/* rgb */ color: rgb(64, 22, 64);
/* oklch */ color: oklch(28.4% 0.089 327.6);
Tailwind
colors: {
  custom: {
    50: '#765675',
    500: '#401640',
    950: '#000000',
  },
}
SCSS
$custom: #401640;
$custom-light: #765675;
$custom-dark: #000000;
JSON
{
  "hex": "#401640",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 64
  },
  "hsl": {
    "h": 300,
    "s": 48.837,
    "l": 16.863
  },
  "oklch": {
    "l": 0.28439,
    "c": 0.08921,
    "h": 327.6
  },
  "luminance": 0.02034
}

Semantic roles & 50–950 ramp

primary
#401640
secondary
#3B773B
accent
#D84F4F
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #401640

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

Preview Lab → · Contrast checker → · Palette generator →

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