#401564#401564

#401564 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.131 H 304.5°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#401564
RGBrgb(64, 21, 100)
HSLhsl(273, 65%, 24%)
HSVhsv(273, 79%, 39%)
CMYKcmyk(36%, 79%, 0%, 60.8%)
CIE-LABlab(18.13, 36.19, -37.84)
CIE-LCHlch(18.13, 52.36, 313.72°)
OKLaboklab(31.05% 0.074 -0.1077)
OKLCHoklch(31.05% 0.131 304.5)
XYZxyz(4.6822, 2.5464, 12.2990)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401564 #396415
analogous
#181564 #401564 #641560
triadic
#401564 #644015 #156440
tetradic
#401564 #641815 #396415 #156064
square
#401564 #641815 #396415 #156064
split-complementary
#401564 #606415 #156418
monochromatic
#100519 #200A31 #401564 #602097 #812AC9

Accessibility & contrast

On white

13.91
#401564 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#401564 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401564
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401564#FFFFFF#000000##FFFFFF
##4015641.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B66
Deuteranopia (green-blind)
#002C62
Tritanopia (blue-blind)
#39293B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401564;
/* rgb */ color: rgb(64, 21, 100);
/* oklch */ color: oklch(31.0% 0.131 304.5);
Tailwind
colors: {
  custom: {
    50: '#795791',
    500: '#401564',
    950: '#000000',
  },
}
SCSS
$custom: #401564;
$custom-light: #795791;
$custom-dark: #000000;
JSON
{
  "hex": "#401564",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 100
  },
  "hsl": {
    "h": 272.658,
    "s": 65.289,
    "l": 23.725
  },
  "oklch": {
    "l": 0.31046,
    "c": 0.13068,
    "h": 304.5
  },
  "luminance": 0.02546
}

Semantic roles & 50–950 ramp

primary
#401564
secondary
#669B3A
accent
#E8408C
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030D
muted
#7B787D

Preview Lab

Preview with #401564

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

Preview Lab → · Contrast checker → · Palette generator →

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