#401563#401563

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

Color values

HEX#401563
RGBrgb(64, 21, 99)
HSLhsl(273, 65%, 24%)
HSVhsv(273, 79%, 39%)
CMYKcmyk(35.4%, 78.8%, 0%, 61.2%)
CIE-LABlab(18.04, 35.93, -37.32)
CIE-LCHlch(18.04, 51.81, 313.92°)
OKLaboklab(30.96% 0.0742 -0.1062)
OKLCHoklch(30.96% 0.13 304.9)
XYZxyz(4.6341, 2.5272, 12.0456)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401563 #386315
analogous
#191563 #401563 #63155F
triadic
#401563 #634015 #156340
tetradic
#401563 #631915 #386315 #155F63
square
#401563 #631915 #386315 #155F63
split-complementary
#401563 #5F6315 #156319
monochromatic
#100519 #1F0A31 #401563 #612095 #812AC8

Accessibility & contrast

On white

13.95
#401563 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401563
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401563#FFFFFF#000000##FFFFFF
##4015631.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B65
Deuteranopia (green-blind)
#002C61
Tritanopia (blue-blind)
#39283B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401563;
/* rgb */ color: rgb(64, 21, 99);
/* oklch */ color: oklch(31.0% 0.130 304.9);
Tailwind
colors: {
  custom: {
    50: '#795790',
    500: '#401563',
    950: '#000000',
  },
}
SCSS
$custom: #401563;
$custom-light: #795790;
$custom-dark: #000000;
JSON
{
  "hex": "#401563",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 99
  },
  "hsl": {
    "h": 273.077,
    "s": 65,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30958,
    "c": 0.12955,
    "h": 304.9
  },
  "luminance": 0.02527
}

Semantic roles & 50–950 ramp

primary
#401563
secondary
#659A3A
accent
#E8408B
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #401563

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

Preview Lab → · Contrast checker → · Palette generator →

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