#401FA7#401FA7

#401FA7 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.197 H 283.4°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#401FA7
RGBrgb(64, 31, 167)
HSLhsl(255, 69%, 39%)
HSVhsv(255, 81%, 65%)
CMYKcmyk(61.7%, 81.4%, 0%, 34.5%)
CIE-LABlab(26.33, 50.21, -66.56)
CIE-LCHlch(26.33, 83.38, 307.03°)
OKLaboklab(38.77% 0.0456 -0.1919)
OKLCHoklch(38.77% 0.197 283.4)
XYZxyz(9.5772, 4.8593, 36.9850)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401FA7 #86A71F
analogous
#1F42A7 #401FA7 #841FA7
triadic
#401FA7 #A7401F #1FA740
tetradic
#401FA7 #A71F42 #86A71F #1FA784
square
#401FA7 #A71F42 #86A71F #1FA784
split-complementary
#401FA7 #A7841F #42A71F
monochromatic
#180C40 #2C1573 #401FA7 #552BD8 #7F5FE1

Accessibility & contrast

On white

10.65
#401FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#401FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401FA7
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401FA7#FFFFFF#000000##FFFFFF
##401FA71.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AB
Deuteranopia (green-blind)
#003AA5
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #401fa7;
/* rgb */ color: rgb(64, 31, 167);
/* oklch */ color: oklch(38.8% 0.197 283.4);
Tailwind
colors: {
  custom: {
    50: '#8360c2',
    500: '#401fa7',
    950: '#000000',
  },
}
SCSS
$custom: #401fa7;
$custom-light: #8360c2;
$custom-dark: #000000;
JSON
{
  "hex": "#401fa7",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 254.559,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38769,
    "c": 0.19728,
    "h": 283.4
  },
  "luminance": 0.0486
}

Semantic roles & 50–950 ramp

primary
#401FA7
secondary
#ACC65C
accent
#EC3CC1
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #401FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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