#401356#401356

#401356 is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.6% C 0.118 H 312.1°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#401356
RGBrgb(64, 19, 86)
HSLhsl(280, 64%, 21%)
HSVhsv(280, 78%, 34%)
CMYKcmyk(25.6%, 77.9%, 0%, 66.3%)
CIE-LABlab(16.64, 33.61, -30.91)
CIE-LCHlch(16.64, 45.67, 317.40°)
OKLaboklab(29.63% 0.0789 -0.0874)
OKLCHoklch(29.63% 0.118 312.1)
XYZxyz(4.0266, 2.2277, 9.0202)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401356 #295613
analogous
#1F1356 #401356 #56134A
triadic
#401356 #564013 #135640
tetradic
#401356 #561F13 #295613 #134A56
square
#401356 #561F13 #295613 #134A56
split-complementary
#401356 #4A5613 #13561F
monochromatic
#130619 #1B0824 #401356 #651E88 #8B29BA

Accessibility & contrast

On white

14.53
#401356 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401356
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401356#FFFFFF#000000##FFFFFF
##4013561.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401356;
/* rgb */ color: rgb(64, 19, 86);
/* oklch */ color: oklch(29.6% 0.118 312.1);
Tailwind
colors: {
  custom: {
    50: '#785686',
    500: '#401356',
    950: '#000000',
  },
}
SCSS
$custom: #401356;
$custom-light: #785686;
$custom-dark: #000000;
JSON
{
  "hex": "#401356",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 86
  },
  "hsl": {
    "h": 280.299,
    "s": 63.81,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29628,
    "c": 0.1177,
    "h": 312.1
  },
  "luminance": 0.02228
}

Semantic roles & 50–950 ramp

primary
#401356
secondary
#538E36
accent
#E74177
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401356

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

Preview Lab → · Contrast checker → · Palette generator →

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