#401056#401056

#401056 is a dark, vivid purple. Relative luminance 0.021; OKLCH L 29.3% C 0.122 H 312.5°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#401056
RGBrgb(64, 16, 86)
HSLhsl(281, 69%, 20%)
HSVhsv(281, 81%, 34%)
CMYKcmyk(25.6%, 81.4%, 0%, 66.3%)
CIE-LABlab(16.17, 34.96, -31.67)
CIE-LCHlch(16.17, 47.17, 317.82°)
OKLaboklab(29.29% 0.0822 -0.0896)
OKLCHoklch(29.29% 0.122 312.5)
XYZxyz(3.9791, 2.1326, 9.0043)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401056 #265610
analogous
#1D1056 #401056 #561049
triadic
#401056 #564010 #105640
tetradic
#401056 #561D10 #265610 #104956
square
#401056 #561D10 #265610 #104956
split-complementary
#401056 #495610 #10561D
monochromatic
#13051A #1A0622 #401056 #661A8A #8D23BD

Accessibility & contrast

On white

14.72
#401056 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401056
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401056#FFFFFF#000000##FFFFFF
##4010561.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401056;
/* rgb */ color: rgb(64, 16, 86);
/* oklch */ color: oklch(29.3% 0.122 312.5);
Tailwind
colors: {
  custom: {
    50: '#785486',
    500: '#401056',
    950: '#000000',
  },
}
SCSS
$custom: #401056;
$custom-light: #785486;
$custom-dark: #000000;
JSON
{
  "hex": "#401056",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 86
  },
  "hsl": {
    "h": 281.143,
    "s": 68.627,
    "l": 20
  },
  "oklch": {
    "l": 0.29294,
    "c": 0.12154,
    "h": 312.5
  },
  "luminance": 0.02132
}

Semantic roles & 50–950 ramp

primary
#401056
secondary
#508F32
accent
#EB3C73
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401056

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

Preview Lab → · Contrast checker → · Palette generator →

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