#401580#401580

#401580 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.162 H 293.8°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#401580
RGBrgb(64, 21, 128)
HSLhsl(264, 72%, 29%)
HSVhsv(264, 84%, 50%)
CMYKcmyk(50%, 83.6%, 0%, 49.8%)
CIE-LABlab(20.77, 43.63, -51.61)
CIE-LCHlch(20.77, 67.58, 310.21°)
OKLaboklab(33.7% 0.0655 -0.1481)
OKLCHoklch(33.7% 0.162 293.8)
XYZxyz(6.2777, 3.1846, 20.7018)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401580 #558015
analogous
#152080 #401580 #761580
triadic
#401580 #804015 #158040
tetradic
#401580 #801520 #558015 #158076
square
#401580 #801520 #558015 #158076
split-complementary
#401580 #807615 #208015
monochromatic
#0D041A #260C4B #401580 #5A1EB5 #7732DD

Accessibility & contrast

On white

12.83
#401580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#401580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401580
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401580#FFFFFF#000000##FFFFFF
##4015801.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#2C344B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #401580;
/* rgb */ color: rgb(64, 21, 128);
/* oklch */ color: oklch(33.7% 0.162 293.8);
Tailwind
colors: {
  custom: {
    50: '#7d59a6',
    500: '#401580',
    950: '#000000',
  },
}
SCSS
$custom: #401580;
$custom-light: #7d59a6;
$custom-dark: #000000;
JSON
{
  "hex": "#401580",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 264.112,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33701,
    "c": 0.16196,
    "h": 293.8
  },
  "luminance": 0.03185
}

Semantic roles & 50–950 ramp

primary
#401580
secondary
#84B53C
accent
#EF39A6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401580

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

Preview Lab → · Contrast checker → · Palette generator →

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