#401681#401681

#401681 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.9% C 0.162 H 293.4°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#401681
RGBrgb(64, 22, 129)
HSLhsl(264, 71%, 30%)
HSVhsv(264, 83%, 51%)
CMYKcmyk(50.4%, 82.9%, 0%, 49.4%)
CIE-LABlab(21.01, 43.48, -51.84)
CIE-LCHlch(21.01, 67.66, 309.99°)
OKLaboklab(33.9% 0.0644 -0.1488)
OKLCHoklch(33.9% 0.162 293.4)
XYZxyz(6.3626, 3.2486, 21.0564)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401681 #578116
analogous
#162281 #401681 #751681
triadic
#401681 #814016 #168140
tetradic
#401681 #811622 #578116 #168175
square
#401681 #811622 #578116 #168175
split-complementary
#401681 #817516 #228116
monochromatic
#0D041A #260D4D #401681 #5A1FB5 #7735DD

Accessibility & contrast

On white

12.73
#401681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#401681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401681
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401681#FFFFFF#000000##FFFFFF
##4016811.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#2B354C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #401681;
/* rgb */ color: rgb(64, 22, 129);
/* oklch */ color: oklch(33.9% 0.162 293.4);
Tailwind
colors: {
  custom: {
    50: '#7d59a7',
    500: '#401681',
    950: '#000000',
  },
}
SCSS
$custom: #401681;
$custom-light: #7d59a7;
$custom-dark: #000000;
JSON
{
  "hex": "#401681",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 263.551,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33901,
    "c": 0.16216,
    "h": 293.4
  },
  "luminance": 0.03249
}

Semantic roles & 50–950 ramp

primary
#401681
secondary
#86B63D
accent
#EE3AA7
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401681

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

Preview Lab → · Contrast checker → · Palette generator →

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