#401C70#401C70

#401C70 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.136 H 298.1°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#401C70
RGBrgb(64, 28, 112)
HSLhsl(266, 60%, 27%)
HSVhsv(266, 75%, 44%)
CMYKcmyk(42.9%, 75%, 0%, 56.1%)
CIE-LABlab(20.40, 35.94, -41.97)
CIE-LCHlch(20.40, 55.26, 310.58°)
OKLaboklab(32.98% 0.0639 -0.1199)
OKLCHoklch(32.98% 0.136 298.1)
XYZxyz(5.4535, 3.0903, 15.6353)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C70 #4C701C
analogous
#1C2270 #401C70 #6A1C70
triadic
#401C70 #70401C #1C7040
tetradic
#401C70 #701C22 #4C701C #1C706A
square
#401C70 #701C22 #4C701C #1C706A
split-complementary
#401C70 #706A1C #22701C
monochromatic
#0E0618 #24103F #401C70 #5C28A1 #7939CD

Accessibility & contrast

On white

12.98
#401C70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#401C70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C70
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C70#FFFFFF#000000##FFFFFF
##401C701.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#00306E
Tritanopia (blue-blind)
#343144
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401c70;
/* rgb */ color: rgb(64, 28, 112);
/* oklch */ color: oklch(33.0% 0.136 298.1);
Tailwind
colors: {
  custom: {
    50: '#7a5c9a',
    500: '#401c70',
    950: '#000000',
  },
}
SCSS
$custom: #401c70;
$custom-light: #7a5c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#401c70",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 112
  },
  "hsl": {
    "h": 265.714,
    "s": 60,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3298,
    "c": 0.1359,
    "h": 298.1
  },
  "luminance": 0.0309
}

Semantic roles & 50–950 ramp

primary
#401C70
secondary
#7BA543
accent
#E3459F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401C70

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

Preview Lab → · Contrast checker → · Palette generator →

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