#401CA7#401CA7

#401CA7 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.200 H 283.7°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#401CA7
RGBrgb(64, 28, 167)
HSLhsl(256, 71%, 38%)
HSVhsv(256, 83%, 65%)
CMYKcmyk(61.7%, 83.2%, 0%, 34.5%)
CIE-LABlab(25.89, 51.49, -67.29)
CIE-LCHlch(25.89, 84.73, 307.43°)
OKLaboklab(38.47% 0.0472 -0.194)
OKLCHoklch(38.47% 0.2 283.7)
XYZxyz(9.5025, 4.7099, 36.9601)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401CA7 #83A71C
analogous
#1C3DA7 #401CA7 #851CA7
triadic
#401CA7 #A7401C #1CA740
tetradic
#401CA7 #A71C3D #83A71C #1CA785
square
#401CA7 #A71C3D #83A71C #1CA785
split-complementary
#401CA7 #A7851C #3DA71C
monochromatic
#180A3E #2C1373 #401CA7 #5426DB #7E5AE3

Accessibility & contrast

On white

10.81
#401CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#401CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401CA7
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401CA7#FFFFFF#000000##FFFFFF
##401CA71.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AB
Deuteranopia (green-blind)
#0039A5
Tritanopia (blue-blind)
#004763
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #401ca7;
/* rgb */ color: rgb(64, 28, 167);
/* oklch */ color: oklch(38.5% 0.200 283.7);
Tailwind
colors: {
  custom: {
    50: '#835fc2',
    500: '#401ca7',
    950: '#000000',
  },
}
SCSS
$custom: #401ca7;
$custom-light: #835fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#401ca7",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 167
  },
  "hsl": {
    "h": 255.54,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38467,
    "c": 0.19967,
    "h": 283.7
  },
  "luminance": 0.04711
}

Semantic roles & 50–950 ramp

primary
#401CA7
secondary
#AAC758
accent
#EE3ABF
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #401CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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