#401568#401568

#401568 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.135 H 302.7°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#401568
RGBrgb(64, 21, 104)
HSLhsl(271, 66%, 25%)
HSVhsv(271, 80%, 41%)
CMYKcmyk(38.5%, 79.8%, 0%, 59.2%)
CIE-LABlab(18.48, 37.23, -39.90)
CIE-LCHlch(18.48, 54.57, 313.02°)
OKLaboklab(31.4% 0.073 -0.1138)
OKLCHoklch(31.4% 0.135 302.7)
XYZxyz(4.8806, 2.6258, 13.3437)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401568 #3D6815
analogous
#161568 #401568 #681567
triadic
#401568 #684015 #156840
tetradic
#401568 #681615 #3D6815 #156768
square
#401568 #681615 #3D6815 #156768
split-complementary
#401568 #676815 #156816
monochromatic
#100519 #210B35 #401568 #5F1F9B #7F2ACE

Accessibility & contrast

On white

13.77
#401568 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#401568 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401568
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401568#FFFFFF#000000##FFFFFF
##4015681.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002D66
Tritanopia (blue-blind)
#382A3E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401568;
/* rgb */ color: rgb(64, 21, 104);
/* oklch */ color: oklch(31.4% 0.135 302.7);
Tailwind
colors: {
  custom: {
    50: '#795794',
    500: '#401568',
    950: '#000000',
  },
}
SCSS
$custom: #401568;
$custom-light: #795794;
$custom-dark: #000000;
JSON
{
  "hex": "#401568",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 104
  },
  "hsl": {
    "h": 271.084,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.31402,
    "c": 0.13518,
    "h": 302.7
  },
  "luminance": 0.02626
}

Semantic roles & 50–950 ramp

primary
#401568
secondary
#6B9F3A
accent
#E93E91
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #401568

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

Preview Lab → · Contrast checker → · Palette generator →

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