#401766#401766

#401766 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.130 H 303.2°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#401766
RGBrgb(64, 23, 102)
HSLhsl(271, 63%, 25%)
HSVhsv(271, 77%, 40%)
CMYKcmyk(37.3%, 77.5%, 0%, 60%)
CIE-LABlab(18.64, 35.76, -38.33)
CIE-LCHlch(18.64, 52.42, 313.01°)
OKLaboklab(31.46% 0.0714 -0.1092)
OKLCHoklch(31.46% 0.13 303.2)
XYZxyz(4.8185, 2.6621, 12.8278)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401766 #3D6617
analogous
#181766 #401766 #661765
triadic
#401766 #664017 #176640
tetradic
#401766 #661817 #3D6617 #176566
square
#401766 #661817 #3D6617 #176566
split-complementary
#401766 #656617 #176618
monochromatic
#100619 #210C34 #401766 #5F2298 #7F2ECA

Accessibility & contrast

On white

13.70
#401766 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#401766 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401766
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401766#FFFFFF#000000##FFFFFF
##4017661.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401766;
/* rgb */ color: rgb(64, 23, 102);
/* oklch */ color: oklch(31.5% 0.130 303.2);
Tailwind
colors: {
  custom: {
    50: '#795892',
    500: '#401766',
    950: '#000000',
  },
}
SCSS
$custom: #401766;
$custom-light: #795892;
$custom-dark: #000000;
JSON
{
  "hex": "#401766",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 102
  },
  "hsl": {
    "h": 271.139,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.31459,
    "c": 0.13047,
    "h": 303.2
  },
  "luminance": 0.02662
}

Semantic roles & 50–950 ramp

primary
#401766
secondary
#6B9C3C
accent
#E64291
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401766

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

Preview Lab → · Contrast checker → · Palette generator →

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