#401C6F#401C6F

#401C6F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.135 H 298.4°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#401C6F
RGBrgb(64, 28, 111)
HSLhsl(266, 60%, 27%)
HSVhsv(266, 75%, 44%)
CMYKcmyk(42.3%, 74.8%, 0%, 56.5%)
CIE-LABlab(20.31, 35.66, -41.47)
CIE-LCHlch(20.31, 54.69, 310.70°)
OKLaboklab(32.89% 0.0642 -0.1184)
OKLCHoklch(32.89% 0.135 298.4)
XYZxyz(5.3981, 3.0681, 15.3436)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C6F #4B6F1C
analogous
#1C226F #401C6F #6A1C6F
triadic
#401C6F #6F401C #1C6F40
tetradic
#401C6F #6F1C22 #4B6F1C #1C6F6A
square
#401C6F #6F1C22 #4B6F1C #1C6F6A
split-complementary
#401C6F #6F6A1C #226F1C
monochromatic
#0E0618 #24103E #401C6F #5C28A0 #7938CD

Accessibility & contrast

On white

13.01
#401C6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#401C6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C6F
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C6F#FFFFFF#000000##FFFFFF
##401C6F1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00306D
Tritanopia (blue-blind)
#353143
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401c6f;
/* rgb */ color: rgb(64, 28, 111);
/* oklch */ color: oklch(32.9% 0.135 298.4);
Tailwind
colors: {
  custom: {
    50: '#7a5c99',
    500: '#401c6f',
    950: '#000000',
  },
}
SCSS
$custom: #401c6f;
$custom-light: #7a5c99;
$custom-dark: #000000;
JSON
{
  "hex": "#401c6f",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 111
  },
  "hsl": {
    "h": 266.024,
    "s": 59.712,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32891,
    "c": 0.1347,
    "h": 298.4
  },
  "luminance": 0.03068
}

Semantic roles & 50–950 ramp

primary
#401C6F
secondary
#7AA443
accent
#E3459E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401C6F

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

Preview Lab → · Contrast checker → · Palette generator →

#401C6F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva