#401666#401666

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

Color values

HEX#401666
RGBrgb(64, 22, 102)
HSLhsl(272, 65%, 24%)
HSVhsv(272, 78%, 40%)
CMYKcmyk(37.3%, 78.4%, 0%, 60%)
CIE-LABlab(18.47, 36.24, -38.60)
CIE-LCHlch(18.47, 52.95, 313.19°)
OKLaboklab(31.34% 0.0725 -0.11)
OKLCHoklch(31.34% 0.132 303.4)
XYZxyz(4.7990, 2.6231, 12.8213)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401666 #3C6616
analogous
#181666 #401666 #661664
triadic
#401666 #664016 #166640
tetradic
#401666 #661816 #3C6616 #166466
square
#401666 #661816 #3C6616 #166466
split-complementary
#401666 #646616 #166618
monochromatic
#100519 #200B34 #401666 #602198 #7F2CCB

Accessibility & contrast

On white

13.77
#401666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401666
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401666#FFFFFF#000000##FFFFFF
##4016661.0013.771.5213.77
#FFFFFF13.771.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401666;
/* rgb */ color: rgb(64, 22, 102);
/* oklch */ color: oklch(31.3% 0.132 303.4);
Tailwind
colors: {
  custom: {
    50: '#795892',
    500: '#401666',
    950: '#000000',
  },
}
SCSS
$custom: #401666;
$custom-light: #795892;
$custom-dark: #000000;
JSON
{
  "hex": "#401666",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 102
  },
  "hsl": {
    "h": 271.5,
    "s": 64.516,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31339,
    "c": 0.13172,
    "h": 303.4
  },
  "luminance": 0.02623
}

Semantic roles & 50–950 ramp

primary
#401666
secondary
#699D3B
accent
#E84090
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #401666

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

Preview Lab → · Contrast checker → · Palette generator →

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