#401474#401474

#401474 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.150 H 298.0°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#401474
RGBrgb(64, 20, 116)
HSLhsl(268, 71%, 27%)
HSVhsv(268, 83%, 45%)
CMYKcmyk(44.8%, 82.8%, 0%, 54.5%)
CIE-LABlab(19.44, 40.83, -46.13)
CIE-LCHlch(19.44, 61.60, 311.52°)
OKLaboklab(32.42% 0.0704 -0.1321)
OKLCHoklch(32.42% 0.15 298)
XYZxyz(5.5161, 2.8512, 16.7793)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401474 #487414
analogous
#141874 #401474 #701474
triadic
#401474 #744014 #147440
tetradic
#401474 #741418 #487414 #147470
square
#401474 #741418 #487414 #147470
split-complementary
#401474 #747014 #187414
monochromatic
#0E051A #230B40 #401474 #5D1DA8 #7A28DA

Accessibility & contrast

On white

13.37
#401474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#401474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401474
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401474#FFFFFF#000000##FFFFFF
##4014741.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002E72
Tritanopia (blue-blind)
#332F44
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401474;
/* rgb */ color: rgb(64, 20, 116);
/* oklch */ color: oklch(32.4% 0.150 298.0);
Tailwind
colors: {
  custom: {
    50: '#7b589d',
    500: '#401474',
    950: '#000000',
  },
}
SCSS
$custom: #401474;
$custom-light: #7b589d;
$custom-dark: #000000;
JSON
{
  "hex": "#401474",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 267.5,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32417,
    "c": 0.14964,
    "h": 298
  },
  "luminance": 0.02851
}

Semantic roles & 50–950 ramp

primary
#401474
secondary
#77AA3A
accent
#ED3A9B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #401474

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

Preview Lab → · Contrast checker → · Palette generator →

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