#401664#401664

#401664 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.129 H 304.3°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#401664
RGBrgb(64, 22, 100)
HSLhsl(272, 64%, 24%)
HSVhsv(272, 78%, 39%)
CMYKcmyk(36%, 78%, 0%, 60.8%)
CIE-LABlab(18.29, 35.72, -37.57)
CIE-LCHlch(18.29, 51.84, 313.55°)
OKLaboklab(31.16% 0.0729 -0.1069)
OKLCHoklch(31.16% 0.129 304.3)
XYZxyz(4.7010, 2.5839, 12.3052)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401664 #3A6416
analogous
#191664 #401664 #641661
triadic
#401664 #644016 #166440
tetradic
#401664 #641916 #3A6416 #166164
square
#401664 #641916 #3A6416 #166164
split-complementary
#401664 #616416 #166419
monochromatic
#100619 #200B32 #401664 #602196 #802CC8

Accessibility & contrast

On white

13.84
#401664 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401664
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401664#FFFFFF#000000##FFFFFF
##4016641.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C66
Deuteranopia (green-blind)
#002D62
Tritanopia (blue-blind)
#39293C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401664;
/* rgb */ color: rgb(64, 22, 100);
/* oklch */ color: oklch(31.2% 0.129 304.3);
Tailwind
colors: {
  custom: {
    50: '#795891',
    500: '#401664',
    950: '#000000',
  },
}
SCSS
$custom: #401664;
$custom-light: #795891;
$custom-dark: #000000;
JSON
{
  "hex": "#401664",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 100
  },
  "hsl": {
    "h": 272.308,
    "s": 63.934,
    "l": 23.922
  },
  "oklch": {
    "l": 0.31163,
    "c": 0.12944,
    "h": 304.3
  },
  "luminance": 0.02584
}

Semantic roles & 50–950 ramp

primary
#401664
secondary
#679B3B
accent
#E7418E
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030D
muted
#7B787D

Preview Lab

Preview with #401664

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

Preview Lab → · Contrast checker → · Palette generator →

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