#401547#401547

#401547 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.8% C 0.098 H 321.8°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#401547
RGBrgb(64, 21, 71)
HSLhsl(292, 54%, 18%)
HSVhsv(292, 70%, 28%)
CMYKcmyk(9.9%, 70.4%, 0%, 72.2%)
CIE-LABlab(15.91, 29.12, -21.83)
CIE-LCHlch(15.91, 36.39, 323.14°)
OKLaboklab(28.76% 0.0773 -0.0608)
OKLCHoklch(28.76% 0.098 321.8)
XYZxyz(3.5197, 2.0814, 6.1764)
Luminance0.0208 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401547 #1C4715
analogous
#271547 #401547 #471535
triadic
#401547 #474015 #154740
tetradic
#401547 #472715 #1C4715 #153547
square
#401547 #472715 #1C4715 #153547
split-complementary
#401547 #354715 #154727
monochromatic
#150718 #150718 #401547 #6B2376 #9531A5

Accessibility & contrast

On white

14.83
#401547 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#401547 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401547
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401547#FFFFFF#000000##FFFFFF
##4015471.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092449
Deuteranopia (green-blind)
#1B2946
Tritanopia (blue-blind)
#411D2B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #401547;
/* rgb */ color: rgb(64, 21, 71);
/* oklch */ color: oklch(28.8% 0.098 321.8);
Tailwind
colors: {
  custom: {
    50: '#77567a',
    500: '#401547',
    950: '#000000',
  },
}
SCSS
$custom: #401547;
$custom-light: #77567a;
$custom-dark: #000000;
JSON
{
  "hex": "#401547",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 71
  },
  "hsl": {
    "h": 291.6,
    "s": 54.348,
    "l": 18.039
  },
  "oklch": {
    "l": 0.28757,
    "c": 0.09835,
    "h": 321.8
  },
  "luminance": 0.02081
}

Semantic roles & 50–950 ramp

primary
#401547
secondary
#437F39
accent
#DE4A5F
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090309
muted
#7B787B

Preview Lab

Preview with #401547

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

Preview Lab → · Contrast checker → · Palette generator →

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