#401668#401668

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

Color values

HEX#401668
RGBrgb(64, 22, 104)
HSLhsl(271, 65%, 25%)
HSVhsv(271, 79%, 41%)
CMYKcmyk(38.5%, 78.8%, 0%, 59.2%)
CIE-LABlab(18.64, 36.76, -39.63)
CIE-LCHlch(18.64, 54.06, 312.85°)
OKLaboklab(31.52% 0.072 -0.113)
OKLCHoklch(31.52% 0.134 302.5)
XYZxyz(4.8994, 2.6633, 13.3500)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401668 #3E6816
analogous
#171668 #401668 #681667
triadic
#401668 #684016 #166840
tetradic
#401668 #681716 #3E6816 #166768
square
#401668 #681716 #3E6816 #166768
split-complementary
#401668 #676816 #166817
monochromatic
#100519 #210B35 #401668 #5F219B #7E2BCD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##401668#FFFFFF#000000##FFFFFF
##4016681.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)
#002D6A
Deuteranopia (green-blind)
#002D66
Tritanopia (blue-blind)
#382B3E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401668;
/* rgb */ color: rgb(64, 22, 104);
/* oklch */ color: oklch(31.5% 0.134 302.5);
Tailwind
colors: {
  custom: {
    50: '#795894',
    500: '#401668',
    950: '#000000',
  },
}
SCSS
$custom: #401668;
$custom-light: #795894;
$custom-dark: #000000;
JSON
{
  "hex": "#401668",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 270.732,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.31517,
    "c": 0.134,
    "h": 302.5
  },
  "luminance": 0.02663
}

Semantic roles & 50–950 ramp

primary
#401668
secondary
#6C9F3B
accent
#E84092
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #401668

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

Preview Lab → · Contrast checker → · Palette generator →

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