#401545#401545

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

Color values

HEX#401545
RGBrgb(64, 21, 69)
HSLhsl(294, 53%, 18%)
HSVhsv(294, 70%, 27%)
CMYKcmyk(7.2%, 69.6%, 0%, 72.9%)
CIE-LABlab(15.78, 28.68, -20.65)
CIE-LCHlch(15.78, 35.34, 324.24°)
OKLaboklab(28.62% 0.0772 -0.0574)
OKLCHoklch(28.62% 0.096 323.4)
XYZxyz(3.4566, 2.0562, 5.8439)
Luminance0.0206 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401545 #1A4515
analogous
#281545 #401545 #451532
triadic
#401545 #454015 #154540
tetradic
#401545 #452815 #1A4515 #153245
square
#401545 #452815 #1A4515 #153245
split-complementary
#401545 #324515 #154528
monochromatic
#160717 #160717 #401545 #6C2374 #9732A3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##401545#FFFFFF#000000##FFFFFF
##4015451.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)
#0B2446
Deuteranopia (green-blind)
#1C2944
Tritanopia (blue-blind)
#411C2A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #401545;
/* rgb */ color: rgb(64, 21, 69);
/* oklch */ color: oklch(28.6% 0.096 323.4);
Tailwind
colors: {
  custom: {
    50: '#775679',
    500: '#401545',
    950: '#000000',
  },
}
SCSS
$custom: #401545;
$custom-light: #775679;
$custom-dark: #000000;
JSON
{
  "hex": "#401545",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 69
  },
  "hsl": {
    "h": 293.75,
    "s": 53.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.28621,
    "c": 0.0962,
    "h": 323.4
  },
  "luminance": 0.02056
}

Semantic roles & 50–950 ramp

primary
#401545
secondary
#407D39
accent
#DD4B5A
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090309
muted
#7B787B

Preview Lab

Preview with #401545

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

Preview Lab → · Contrast checker → · Palette generator →

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