#401871#401871

#401871 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.142 H 298.5°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#401871
RGBrgb(64, 24, 113)
HSLhsl(267, 65%, 27%)
HSVhsv(267, 79%, 44%)
CMYKcmyk(43.4%, 78.8%, 0%, 55.7%)
CIE-LABlab(19.78, 38.22, -43.63)
CIE-LCHlch(19.78, 58.00, 311.22°)
OKLaboklab(32.57% 0.0677 -0.1248)
OKLCHoklch(32.57% 0.142 298.5)
XYZxyz(5.4209, 2.9354, 15.9006)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401871 #497118
analogous
#181D71 #401871 #6D1871
triadic
#401871 #714018 #187140
tetradic
#401871 #71181D #497118 #18716D
square
#401871 #71181D #497118 #18716D
split-complementary
#401871 #716D18 #1D7118
monochromatic
#0E0519 #230D3F #401871 #5D23A3 #7930D3

Accessibility & contrast

On white

13.23
#401871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#401871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401871
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401871#FFFFFF#000000##FFFFFF
##4018711.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401871;
/* rgb */ color: rgb(64, 24, 113);
/* oklch */ color: oklch(32.6% 0.142 298.5);
Tailwind
colors: {
  custom: {
    50: '#7a599b',
    500: '#401871',
    950: '#000000',
  },
}
SCSS
$custom: #401871;
$custom-light: #7a599b;
$custom-dark: #000000;
JSON
{
  "hex": "#401871",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 266.966,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32572,
    "c": 0.14195,
    "h": 298.5
  },
  "luminance": 0.02936
}

Semantic roles & 50–950 ramp

primary
#401871
secondary
#78A63E
accent
#E8409C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401871

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

Preview Lab → · Contrast checker → · Palette generator →

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