#401047#401047

#401047 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.1% C 0.106 H 322.3°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#401047
RGBrgb(64, 16, 71)
HSLhsl(292, 63%, 17%)
HSVhsv(292, 77%, 28%)
CMYKcmyk(9.9%, 77.5%, 0%, 72.2%)
CIE-LABlab(15.04, 31.55, -23.22)
CIE-LCHlch(15.04, 39.17, 323.66°)
OKLaboklab(28.13% 0.0839 -0.0648)
OKLCHoklch(28.13% 0.106 322.3)
XYZxyz(3.4369, 1.9157, 6.1488)
Luminance0.0192 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401047 #174710
analogous
#251047 #401047 #471033
triadic
#401047 #474010 #104740
tetradic
#401047 #472510 #174710 #103347
square
#401047 #472510 #174710 #103347
split-complementary
#401047 #334710 #104725
monochromatic
#170619 #170619 #401047 #6D1B79 #9A27AB

Accessibility & contrast

On white

15.18
#401047 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#401047 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401047
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401047#FFFFFF#000000##FFFFFF
##4010471.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012249
Deuteranopia (green-blind)
#182846
Tritanopia (blue-blind)
#411A2A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #401047;
/* rgb */ color: rgb(64, 16, 71);
/* oklch */ color: oklch(28.1% 0.106 322.3);
Tailwind
colors: {
  custom: {
    50: '#77537a',
    500: '#401047',
    950: '#000000',
  },
}
SCSS
$custom: #401047;
$custom-light: #77537a;
$custom-dark: #000000;
JSON
{
  "hex": "#401047",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 71
  },
  "hsl": {
    "h": 292.364,
    "s": 63.218,
    "l": 17.059
  },
  "oklch": {
    "l": 0.2813,
    "c": 0.106,
    "h": 322.3
  },
  "luminance": 0.01916
}

Semantic roles & 50–950 ramp

primary
#401047
secondary
#3C8132
accent
#E64257
background
#F7F4F7
surface
#EDE8ED
border
#C8C4C8
text
#090309
muted
#7B787B

Preview Lab

Preview with #401047

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

Preview Lab → · Contrast checker → · Palette generator →

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