#401156#401156

#401156 is a dark, vivid purple. Relative luminance 0.022; OKLCH L 29.4% C 0.120 H 312.4°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#401156
RGBrgb(64, 17, 86)
HSLhsl(281, 67%, 20%)
HSVhsv(281, 80%, 34%)
CMYKcmyk(25.6%, 80.2%, 0%, 66.3%)
CIE-LABlab(16.32, 34.52, -31.43)
CIE-LCHlch(16.32, 46.69, 317.69°)
OKLaboklab(29.4% 0.0811 -0.0889)
OKLCHoklch(29.4% 0.12 312.4)
XYZxyz(3.9942, 2.1629, 9.0094)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401156 #275611
analogous
#1E1156 #401156 #561149
triadic
#401156 #564011 #115640
tetradic
#401156 #561E11 #275611 #114956
square
#401156 #561E11 #275611 #114956
split-complementary
#401156 #495611 #11561E
monochromatic
#13051A #1A0723 #401156 #661B89 #8C25BC

Accessibility & contrast

On white

14.66
#401156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401156
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401156#FFFFFF#000000##FFFFFF
##4011561.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002658
Deuteranopia (green-blind)
#082955
Tritanopia (blue-blind)
#3D2132
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #401156;
/* rgb */ color: rgb(64, 17, 86);
/* oklch */ color: oklch(29.4% 0.120 312.4);
Tailwind
colors: {
  custom: {
    50: '#785586',
    500: '#401156',
    950: '#000000',
  },
}
SCSS
$custom: #401156;
$custom-light: #785586;
$custom-dark: #000000;
JSON
{
  "hex": "#401156",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 280.87,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29401,
    "c": 0.12031,
    "h": 312.4
  },
  "luminance": 0.02163
}

Semantic roles & 50–950 ramp

primary
#401156
secondary
#518F34
accent
#EA3E75
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401156

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

Preview Lab → · Contrast checker → · Palette generator →

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