#401147#401147

#401147 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.2% C 0.105 H 322.2°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#401147
RGBrgb(64, 17, 71)
HSLhsl(292, 61%, 17%)
HSVhsv(292, 76%, 28%)
CMYKcmyk(9.9%, 76.1%, 0%, 72.2%)
CIE-LABlab(15.20, 31.09, -22.96)
CIE-LCHlch(15.20, 38.65, 323.56°)
OKLaboklab(28.25% 0.0827 -0.064)
OKLCHoklch(28.25% 0.105 322.2)
XYZxyz(3.4520, 1.9460, 6.1538)
Luminance0.0195 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401147 #184711
analogous
#251147 #401147 #471133
triadic
#401147 #474011 #114740
tetradic
#401147 #472511 #184711 #113347
square
#401147 #472511 #184711 #113347
split-complementary
#401147 #334711 #114725
monochromatic
#160619 #160619 #401147 #6D1D78 #9929AA

Accessibility & contrast

On white

15.12
#401147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#401147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401147
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401147#FFFFFF#000000##FFFFFF
##4011471.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401147;
/* rgb */ color: rgb(64, 17, 71);
/* oklch */ color: oklch(28.2% 0.105 322.2);
Tailwind
colors: {
  custom: {
    50: '#77547a',
    500: '#401147',
    950: '#000000',
  },
}
SCSS
$custom: #401147;
$custom-light: #77547a;
$custom-dark: #000000;
JSON
{
  "hex": "#401147",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 71
  },
  "hsl": {
    "h": 292.222,
    "s": 61.364,
    "l": 17.255
  },
  "oklch": {
    "l": 0.28247,
    "c": 0.10457,
    "h": 322.2
  },
  "luminance": 0.01946
}

Semantic roles & 50–950 ramp

primary
#401147
secondary
#3D8133
accent
#E44358
background
#F7F5F7
surface
#EDE8ED
border
#C8C4C8
text
#090309
muted
#7B787B

Preview Lab

Preview with #401147

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

Preview Lab → · Contrast checker → · Palette generator →

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