#401879#401879

#401879 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.151 H 295.6°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#401879
RGBrgb(64, 24, 121)
HSLhsl(265, 67%, 28%)
HSVhsv(265, 80%, 47%)
CMYKcmyk(47.1%, 80.2%, 0%, 52.5%)
CIE-LABlab(20.53, 40.41, -47.54)
CIE-LCHlch(20.53, 62.40, 310.36°)
OKLaboklab(33.33% 0.0654 -0.1362)
OKLCHoklch(33.33% 0.151 295.6)
XYZxyz(5.8912, 3.1236, 18.3780)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401879 #517918
analogous
#182079 #401879 #701879
triadic
#401879 #794018 #187940
tetradic
#401879 #791820 #517918 #187970
square
#401879 #791820 #517918 #187970
split-complementary
#401879 #797018 #207918
monochromatic
#0E051A #250E46 #401879 #5B22AC #7735D7

Accessibility & contrast

On white

12.92
#401879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#401879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401879
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401879#FFFFFF#000000##FFFFFF
##4018791.0012.921.6212.92
#FFFFFF12.921.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#303348
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401879;
/* rgb */ color: rgb(64, 24, 121);
/* oklch */ color: oklch(33.3% 0.151 295.6);
Tailwind
colors: {
  custom: {
    50: '#7b5aa1',
    500: '#401879',
    950: '#000000',
  },
}
SCSS
$custom: #401879;
$custom-light: #7b5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#401879",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 264.742,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33327,
    "c": 0.15114,
    "h": 295.6
  },
  "luminance": 0.03124
}

Semantic roles & 50–950 ramp

primary
#401879
secondary
#80AE3F
accent
#EA3EA3
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401879

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

Preview Lab → · Contrast checker → · Palette generator →

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