#401847#401847

#401847 is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.2% C 0.093 H 321.5°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#401847
RGBrgb(64, 24, 71)
HSLhsl(291, 49%, 19%)
HSVhsv(291, 66%, 28%)
CMYKcmyk(9.9%, 66.2%, 0%, 72.2%)
CIE-LABlab(16.50, 27.51, -20.90)
CIE-LCHlch(16.50, 34.55, 322.77°)
OKLaboklab(29.18% 0.0729 -0.0581)
OKLCHoklch(29.18% 0.093 321.5)
XYZxyz(3.5782, 2.1984, 6.1959)
Luminance0.0220 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401847 #1F4718
analogous
#281847 #401847 #471836
triadic
#401847 #474018 #184740
tetradic
#401847 #472818 #1F4718 #183647
square
#401847 #472818 #1F4718 #183647
split-complementary
#401847 #364718 #184728
monochromatic
#150817 #170919 #401847 #692775 #9237A2

Accessibility & contrast

On white

14.59
#401847 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#401847 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401847
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401847#FFFFFF#000000##FFFFFF
##4018471.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2648
Deuteranopia (green-blind)
#1D2A46
Tritanopia (blue-blind)
#411F2C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401847;
/* rgb */ color: rgb(64, 24, 71);
/* oklch */ color: oklch(29.2% 0.093 321.5);
Tailwind
colors: {
  custom: {
    50: '#76587a',
    500: '#401847',
    950: '#000000',
  },
}
SCSS
$custom: #401847;
$custom-light: #76587a;
$custom-dark: #000000;
JSON
{
  "hex": "#401847",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 71
  },
  "hsl": {
    "h": 291.064,
    "s": 49.474,
    "l": 18.627
  },
  "oklch": {
    "l": 0.29183,
    "c": 0.09326,
    "h": 321.5
  },
  "luminance": 0.02198
}

Semantic roles & 50–950 ramp

primary
#401847
secondary
#477E3D
accent
#D94F63
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090309
muted
#7B787B

Preview Lab

Preview with #401847

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

Preview Lab → · Contrast checker → · Palette generator →

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