#401845#401845

#401845 is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.1% C 0.091 H 323.1°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#401845
RGBrgb(64, 24, 69)
HSLhsl(293, 48%, 18%)
HSVhsv(293, 65%, 27%)
CMYKcmyk(7.2%, 65.2%, 0%, 72.9%)
CIE-LABlab(16.37, 27.06, -19.71)
CIE-LCHlch(16.37, 33.48, 323.92°)
OKLaboklab(29.05% 0.0728 -0.0547)
OKLCHoklch(29.05% 0.091 323.1)
XYZxyz(3.5151, 2.1731, 5.8634)
Luminance0.0217 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401845 #1D4518
analogous
#291845 #401845 #451833
triadic
#401845 #454018 #184540
tetradic
#401845 #452918 #1D4518 #183345
square
#401845 #452918 #1D4518 #183345
split-complementary
#401845 #334518 #184529
monochromatic
#150817 #160818 #401845 #6A2872 #9438A0

Accessibility & contrast

On white

14.64
#401845 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#401845 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401845
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401845#FFFFFF#000000##FFFFFF
##4018451.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102646
Deuteranopia (green-blind)
#1E2A44
Tritanopia (blue-blind)
#411E2B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401845;
/* rgb */ color: rgb(64, 24, 69);
/* oklch */ color: oklch(29.1% 0.091 323.1);
Tailwind
colors: {
  custom: {
    50: '#765879',
    500: '#401845',
    950: '#000000',
  },
}
SCSS
$custom: #401845;
$custom-light: #765879;
$custom-dark: #000000;
JSON
{
  "hex": "#401845",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 69
  },
  "hsl": {
    "h": 293.333,
    "s": 48.387,
    "l": 18.235
  },
  "oklch": {
    "l": 0.29052,
    "c": 0.09103,
    "h": 323.1
  },
  "luminance": 0.02173
}

Semantic roles & 50–950 ramp

primary
#401845
secondary
#447C3D
accent
#D8505F
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090309
muted
#7B787B

Preview Lab

Preview with #401845

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

Preview Lab → · Contrast checker → · Palette generator →

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