#401671#401671

#401671 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.144 H 298.8°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#401671
RGBrgb(64, 22, 113)
HSLhsl(268, 67%, 26%)
HSVhsv(268, 81%, 44%)
CMYKcmyk(43.4%, 80.5%, 0%, 55.7%)
CIE-LABlab(19.46, 39.16, -44.16)
CIE-LCHlch(19.46, 59.02, 311.56°)
OKLaboklab(32.34% 0.0696 -0.1263)
OKLCHoklch(32.34% 0.144 298.8)
XYZxyz(5.3811, 2.8560, 15.8873)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401671 #477116
analogous
#161A71 #401671 #6E1671
triadic
#401671 #714016 #167140
tetradic
#401671 #71161A #477116 #16716E
square
#401671 #71161A #477116 #16716E
split-complementary
#401671 #716E16 #1A7116
monochromatic
#0F051A #230C3E #401671 #5D20A4 #7A2CD6

Accessibility & contrast

On white

13.37
#401671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#401671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401671
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401671#FFFFFF#000000##FFFFFF
##4016711.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#342E43
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401671;
/* rgb */ color: rgb(64, 22, 113);
/* oklch */ color: oklch(32.3% 0.144 298.8);
Tailwind
colors: {
  custom: {
    50: '#7a589b',
    500: '#401671',
    950: '#000000',
  },
}
SCSS
$custom: #401671;
$custom-light: #7a589b;
$custom-dark: #000000;
JSON
{
  "hex": "#401671",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 267.692,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32343,
    "c": 0.14419,
    "h": 298.8
  },
  "luminance": 0.02856
}

Semantic roles & 50–950 ramp

primary
#401671
secondary
#76A73C
accent
#EA3E9B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401671

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

Preview Lab → · Contrast checker → · Palette generator →

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