#401163#401163

#401163 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.134 H 305.6°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#401163
RGBrgb(64, 17, 99)
HSLhsl(274, 71%, 23%)
HSVhsv(274, 83%, 39%)
CMYKcmyk(35.4%, 82.8%, 0%, 61.2%)
CIE-LABlab(17.42, 37.71, -38.33)
CIE-LCHlch(17.42, 53.77, 314.53°)
OKLaboklab(30.52% 0.0781 -0.1091)
OKLCHoklch(30.52% 0.134 305.6)
XYZxyz(4.5664, 2.3918, 12.0231)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401163 #346311
analogous
#171163 #401163 #63115D
triadic
#401163 #634011 #116340
tetradic
#401163 #631711 #346311 #115D63
square
#401163 #631711 #346311 #115D63
split-complementary
#401163 #5D6311 #116317
monochromatic
#11041A #1E082F #401163 #621A97 #8423CB

Accessibility & contrast

On white

14.20
#401163 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#401163 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401163
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401163#FFFFFF#000000##FFFFFF
##4011631.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401163;
/* rgb */ color: rgb(64, 17, 99);
/* oklch */ color: oklch(30.5% 0.134 305.6);
Tailwind
colors: {
  custom: {
    50: '#795590',
    500: '#401163',
    950: '#000000',
  },
}
SCSS
$custom: #401163;
$custom-light: #795590;
$custom-dark: #000000;
JSON
{
  "hex": "#401163",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 99
  },
  "hsl": {
    "h": 274.39,
    "s": 70.69,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30523,
    "c": 0.13423,
    "h": 305.6
  },
  "luminance": 0.02392
}

Semantic roles & 50–950 ramp

primary
#401163
secondary
#609B34
accent
#ED3A87
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030D
muted
#7B787D

Preview Lab

Preview with #401163

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

Preview Lab → · Contrast checker → · Palette generator →

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