#401971#401971

#401971 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.141 H 298.3°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#401971
RGBrgb(64, 25, 113)
HSLhsl(267, 64%, 27%)
HSVhsv(267, 78%, 44%)
CMYKcmyk(43.4%, 77.9%, 0%, 55.7%)
CIE-LABlab(19.95, 37.74, -43.35)
CIE-LCHlch(19.95, 57.48, 311.04°)
OKLaboklab(32.69% 0.0668 -0.1239)
OKLCHoklch(32.69% 0.141 298.3)
XYZxyz(5.4419, 2.9774, 15.9076)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401971 #4A7119
analogous
#191E71 #401971 #6C1971
triadic
#401971 #714019 #197140
tetradic
#401971 #71191E #4A7119 #19716C
square
#401971 #71191E #4A7119 #19716C
split-complementary
#401971 #716C19 #1E7119
monochromatic
#0E0619 #240E3F #401971 #5C24A3 #7933D2

Accessibility & contrast

On white

13.16
#401971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#401971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401971
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401971#FFFFFF#000000##FFFFFF
##4019711.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#002F6F
Tritanopia (blue-blind)
#343044
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401971;
/* rgb */ color: rgb(64, 25, 113);
/* oklch */ color: oklch(32.7% 0.141 298.3);
Tailwind
colors: {
  custom: {
    50: '#7a5a9b',
    500: '#401971',
    950: '#000000',
  },
}
SCSS
$custom: #401971;
$custom-light: #7a5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#401971",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 266.591,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.32691,
    "c": 0.14078,
    "h": 298.3
  },
  "luminance": 0.02978
}

Semantic roles & 50–950 ramp

primary
#401971
secondary
#79A640
accent
#E7419D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401971

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

Preview Lab → · Contrast checker → · Palette generator →

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