#401566#401566

#401566 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.133 H 303.6°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#401566
RGBrgb(64, 21, 102)
HSLhsl(272, 66%, 24%)
HSVhsv(272, 79%, 40%)
CMYKcmyk(37.3%, 79.4%, 0%, 60%)
CIE-LABlab(18.30, 36.71, -38.87)
CIE-LCHlch(18.30, 53.47, 313.36°)
OKLaboklab(31.22% 0.0735 -0.1108)
OKLCHoklch(31.22% 0.133 303.6)
XYZxyz(4.7802, 2.5856, 12.8150)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401566 #3B6615
analogous
#181566 #401566 #661564
triadic
#401566 #664015 #156640
tetradic
#401566 #661815 #3B6615 #156466
square
#401566 #661815 #3B6615 #156466
split-complementary
#401566 #646615 #156618
monochromatic
#100519 #200B33 #401566 #601F99 #802ACC

Accessibility & contrast

On white

13.84
#401566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#401566 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401566
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401566#FFFFFF#000000##FFFFFF
##4015661.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C68
Deuteranopia (green-blind)
#002C64
Tritanopia (blue-blind)
#38293C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401566;
/* rgb */ color: rgb(64, 21, 102);
/* oklch */ color: oklch(31.2% 0.133 303.6);
Tailwind
colors: {
  custom: {
    50: '#795792',
    500: '#401566',
    950: '#000000',
  },
}
SCSS
$custom: #401566;
$custom-light: #795792;
$custom-dark: #000000;
JSON
{
  "hex": "#401566",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 271.852,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.31223,
    "c": 0.13293,
    "h": 303.6
  },
  "luminance": 0.02586
}

Semantic roles & 50–950 ramp

primary
#401566
secondary
#689D3A
accent
#E93F8F
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #401566

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

Preview Lab → · Contrast checker → · Palette generator →

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