#401771#401771

#401771 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.143 H 298.7°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#401771
RGBrgb(64, 23, 113)
HSLhsl(267, 66%, 27%)
HSVhsv(267, 80%, 44%)
CMYKcmyk(43.4%, 79.6%, 0%, 55.7%)
CIE-LABlab(19.62, 38.70, -43.89)
CIE-LCHlch(19.62, 58.52, 311.40°)
OKLaboklab(32.46% 0.0687 -0.1255)
OKLCHoklch(32.46% 0.143 298.7)
XYZxyz(5.4006, 2.8950, 15.8938)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401771 #487117
analogous
#171B71 #401771 #6D1771
triadic
#401771 #714017 #177140
tetradic
#401771 #71171B #487117 #17716D
square
#401771 #71171B #487117 #17716D
split-complementary
#401771 #716D17 #1B7117
monochromatic
#0E0519 #230D3E #401771 #5D21A4 #7A2ED4

Accessibility & contrast

On white

13.30
#401771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#401771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401771
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401771#FFFFFF#000000##FFFFFF
##4017711.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#002F6F
Tritanopia (blue-blind)
#342F43
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401771;
/* rgb */ color: rgb(64, 23, 113);
/* oklch */ color: oklch(32.5% 0.143 298.7);
Tailwind
colors: {
  custom: {
    50: '#7a599b',
    500: '#401771',
    950: '#000000',
  },
}
SCSS
$custom: #401771;
$custom-light: #7a599b;
$custom-dark: #000000;
JSON
{
  "hex": "#401771",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 267.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32456,
    "c": 0.14309,
    "h": 298.7
  },
  "luminance": 0.02895
}

Semantic roles & 50–950 ramp

primary
#401771
secondary
#77A73D
accent
#E93F9B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401771

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

Preview Lab → · Contrast checker → · Palette generator →

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