#401680#401680

#401680 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.161 H 293.7°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#401680
RGBrgb(64, 22, 128)
HSLhsl(264, 71%, 29%)
HSVhsv(264, 83%, 50%)
CMYKcmyk(50%, 82.8%, 0%, 49.8%)
CIE-LABlab(20.91, 43.21, -51.37)
CIE-LCHlch(20.91, 67.13, 310.07°)
OKLaboklab(33.8% 0.0647 -0.1475)
OKLCHoklch(33.8% 0.161 293.7)
XYZxyz(6.2965, 3.2221, 20.7081)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401680 #568016
analogous
#162180 #401680 #751680
triadic
#401680 #804016 #168040
tetradic
#401680 #801621 #568016 #168075
square
#401680 #801621 #568016 #168075
split-complementary
#401680 #807516 #218016
monochromatic
#0D041A #260D4C #401680 #5A1FB4 #7734DC

Accessibility & contrast

On white

12.77
#401680 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#401680 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401680
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401680#FFFFFF#000000##FFFFFF
##4016801.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#2C354C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #401680;
/* rgb */ color: rgb(64, 22, 128);
/* oklch */ color: oklch(33.8% 0.161 293.7);
Tailwind
colors: {
  custom: {
    50: '#7c59a6',
    500: '#401680',
    950: '#000000',
  },
}
SCSS
$custom: #401680;
$custom-light: #7c59a6;
$custom-dark: #000000;
JSON
{
  "hex": "#401680",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 128
  },
  "hsl": {
    "h": 263.774,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33801,
    "c": 0.16105,
    "h": 293.7
  },
  "luminance": 0.03222
}

Semantic roles & 50–950 ramp

primary
#401680
secondary
#85B53D
accent
#ED3AA6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401680

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

Preview Lab → · Contrast checker → · Palette generator →

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