#401371#401371

#401371 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.147 H 299.3°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#401371
RGBrgb(64, 19, 113)
HSLhsl(269, 71%, 26%)
HSVhsv(269, 83%, 44%)
CMYKcmyk(43.4%, 83.2%, 0%, 55.7%)
CIE-LABlab(19.00, 40.46, -44.90)
CIE-LCHlch(19.00, 60.44, 312.03°)
OKLaboklab(32.03% 0.0722 -0.1284)
OKLCHoklch(32.03% 0.147 299.3)
XYZxyz(5.3271, 2.7479, 15.8693)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401371 #447113
analogous
#131571 #401371 #6F1371
triadic
#401371 #714013 #137140
tetradic
#401371 #711315 #447113 #13716F
square
#401371 #711315 #447113 #13716F
split-complementary
#401371 #716F13 #157113
monochromatic
#0F041A #220A3D #401371 #5E1CA5 #7B25DA

Accessibility & contrast

On white

13.55
#401371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#401371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401371
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401371#FFFFFF#000000##FFFFFF
##4013711.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#342D42
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401371;
/* rgb */ color: rgb(64, 19, 113);
/* oklch */ color: oklch(32.0% 0.147 299.3);
Tailwind
colors: {
  custom: {
    50: '#7b579b',
    500: '#401371',
    950: '#000000',
  },
}
SCSS
$custom: #401371;
$custom-light: #7b579b;
$custom-dark: #000000;
JSON
{
  "hex": "#401371",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 268.723,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32027,
    "c": 0.14733,
    "h": 299.3
  },
  "luminance": 0.02748
}

Semantic roles & 50–950 ramp

primary
#401371
secondary
#72A838
accent
#EE3A98
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #401371

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

Preview Lab → · Contrast checker → · Palette generator →

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