#401567#401567

#401567 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.134 H 303.1°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#401567
RGBrgb(64, 21, 103)
HSLhsl(271, 66%, 24%)
HSVhsv(271, 80%, 40%)
CMYKcmyk(37.9%, 79.6%, 0%, 59.6%)
CIE-LABlab(18.39, 36.97, -39.39)
CIE-LCHlch(18.39, 54.02, 313.19°)
OKLaboklab(31.31% 0.0733 -0.1123)
OKLCHoklch(31.31% 0.134 303.1)
XYZxyz(4.8301, 2.6056, 13.0778)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401567 #3C6715
analogous
#171567 #401567 #671565
triadic
#401567 #674015 #156740
tetradic
#401567 #671715 #3C6715 #156567
square
#401567 #671715 #3C6715 #156567
split-complementary
#401567 #656715 #156717
monochromatic
#100519 #200B34 #401567 #601F9A #7F2ACD

Accessibility & contrast

On white

13.80
#401567 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401567
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401567#FFFFFF#000000##FFFFFF
##4015671.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C69
Deuteranopia (green-blind)
#002D65
Tritanopia (blue-blind)
#382A3D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401567;
/* rgb */ color: rgb(64, 21, 103);
/* oklch */ color: oklch(31.3% 0.134 303.1);
Tailwind
colors: {
  custom: {
    50: '#795793',
    500: '#401567',
    950: '#000000',
  },
}
SCSS
$custom: #401567;
$custom-light: #795793;
$custom-dark: #000000;
JSON
{
  "hex": "#401567",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 103
  },
  "hsl": {
    "h": 271.463,
    "s": 66.129,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31312,
    "c": 0.13406,
    "h": 303.1
  },
  "luminance": 0.02606
}

Semantic roles & 50–950 ramp

primary
#401567
secondary
#699E3A
accent
#E93F90
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #401567

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

Preview Lab → · Contrast checker → · Palette generator →

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