#401456#401456

#401456 is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.7% C 0.116 H 311.9°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#401456
RGBrgb(64, 20, 86)
HSLhsl(280, 62%, 21%)
HSVhsv(280, 77%, 34%)
CMYKcmyk(25.6%, 76.7%, 0%, 66.3%)
CIE-LABlab(16.81, 33.14, -30.64)
CIE-LCHlch(16.81, 45.13, 317.24°)
OKLaboklab(29.75% 0.0777 -0.0866)
OKLCHoklch(29.75% 0.116 311.9)
XYZxyz(4.0439, 2.2623, 9.0259)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401456 #2A5614
analogous
#1F1456 #401456 #56144B
triadic
#401456 #564014 #145640
tetradic
#401456 #561F14 #2A5614 #144B56
square
#401456 #561F14 #2A5614 #144B56
split-complementary
#401456 #4B5614 #14561F
monochromatic
#120619 #1B0824 #401456 #652088 #8A2BB9

Accessibility & contrast

On white

14.46
#401456 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#401456 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401456
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401456#FFFFFF#000000##FFFFFF
##4014561.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002758
Deuteranopia (green-blind)
#0C2A55
Tritanopia (blue-blind)
#3D2233
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401456;
/* rgb */ color: rgb(64, 20, 86);
/* oklch */ color: oklch(29.7% 0.116 311.9);
Tailwind
colors: {
  custom: {
    50: '#785686',
    500: '#401456',
    950: '#000000',
  },
}
SCSS
$custom: #401456;
$custom-light: #785686;
$custom-dark: #000000;
JSON
{
  "hex": "#401456",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 86
  },
  "hsl": {
    "h": 280,
    "s": 62.264,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29748,
    "c": 0.11633,
    "h": 311.9
  },
  "luminance": 0.02262
}

Semantic roles & 50–950 ramp

primary
#401456
secondary
#558E38
accent
#E54279
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401456

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

Preview Lab → · Contrast checker → · Palette generator →

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