#401066#401066

#401066 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.138 H 304.4°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#401066
RGBrgb(64, 16, 102)
HSLhsl(273, 73%, 23%)
HSVhsv(273, 84%, 40%)
CMYKcmyk(37.3%, 84.3%, 0%, 60%)
CIE-LABlab(17.55, 38.87, -40.09)
CIE-LCHlch(17.55, 55.84, 314.11°)
OKLaboklab(30.7% 0.0782 -0.1143)
OKLCHoklch(30.7% 0.138 304.4)
XYZxyz(4.6974, 2.4199, 12.7874)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401066 #366610
analogous
#151066 #401066 #661061
triadic
#401066 #664010 #106640
tetradic
#401066 #661510 #366610 #106166
square
#401066 #661510 #366610 #106166
split-complementary
#401066 #616610 #106615
monochromatic
#11041A #1F0831 #401066 #61189B #8221D0

Accessibility & contrast

On white

14.15
#401066 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401066
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401066#FFFFFF#000000##FFFFFF
##4010661.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002B64
Tritanopia (blue-blind)
#38273B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401066;
/* rgb */ color: rgb(64, 16, 102);
/* oklch */ color: oklch(30.7% 0.138 304.4);
Tailwind
colors: {
  custom: {
    50: '#795592',
    500: '#401066',
    950: '#000000',
  },
}
SCSS
$custom: #401066;
$custom-light: #795592;
$custom-dark: #000000;
JSON
{
  "hex": "#401066",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 102
  },
  "hsl": {
    "h": 273.488,
    "s": 72.881,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30698,
    "c": 0.13848,
    "h": 304.4
  },
  "luminance": 0.0242
}

Semantic roles & 50–950 ramp

primary
#401066
secondary
#639E33
accent
#F03889
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #401066

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

Preview Lab → · Contrast checker → · Palette generator →

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