#401063#401063

#401063 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.135 H 305.7°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#401063
RGBrgb(64, 16, 99)
HSLhsl(275, 72%, 23%)
HSVhsv(275, 84%, 39%)
CMYKcmyk(35.4%, 83.8%, 0%, 61.2%)
CIE-LABlab(17.28, 38.12, -38.56)
CIE-LCHlch(17.28, 54.22, 314.67°)
OKLaboklab(30.42% 0.079 -0.1098)
OKLCHoklch(30.42% 0.135 305.7)
XYZxyz(4.5513, 2.3615, 12.0180)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401063 #336310
analogous
#171063 #401063 #63105C
triadic
#401063 #634010 #106340
tetradic
#401063 #631710 #336310 #105C63
square
#401063 #631710 #336310 #105C63
split-complementary
#401063 #5C6310 #106317
monochromatic
#11041A #1E072E #401063 #621998 #8421CC

Accessibility & contrast

On white

14.26
#401063 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#401063 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401063
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401063#FFFFFF#000000##FFFFFF
##4010631.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002965
Deuteranopia (green-blind)
#002B61
Tritanopia (blue-blind)
#3A263A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401063;
/* rgb */ color: rgb(64, 16, 99);
/* oklch */ color: oklch(30.4% 0.135 305.7);
Tailwind
colors: {
  custom: {
    50: '#795590',
    500: '#401063',
    950: '#000000',
  },
}
SCSS
$custom: #401063;
$custom-light: #795590;
$custom-dark: #000000;
JSON
{
  "hex": "#401063",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 99
  },
  "hsl": {
    "h": 274.699,
    "s": 72.174,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30424,
    "c": 0.1353,
    "h": 305.7
  },
  "luminance": 0.02361
}

Semantic roles & 50–950 ramp

primary
#401063
secondary
#5F9C33
accent
#EF3986
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030D
muted
#7B787D

Preview Lab

Preview with #401063

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

Preview Lab → · Contrast checker → · Palette generator →

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