#401880#401880

#401880 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.159 H 293.4°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#401880
RGBrgb(64, 24, 128)
HSLhsl(263, 68%, 30%)
HSVhsv(263, 81%, 50%)
CMYKcmyk(50%, 81.3%, 0%, 49.8%)
CIE-LABlab(21.21, 42.33, -50.88)
CIE-LCHlch(21.21, 66.19, 309.76°)
OKLaboklab(34.01% 0.0632 -0.146)
OKLCHoklch(34.01% 0.159 293.4)
XYZxyz(6.3362, 3.3016, 20.7213)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401880 #588018
analogous
#182480 #401880 #741880
triadic
#401880 #804018 #188040
tetradic
#401880 #801824 #588018 #188074
square
#401880 #801824 #588018 #188074
split-complementary
#401880 #807418 #248018
monochromatic
#0D051A #260E4C #401880 #5A22B4 #7739DA

Accessibility & contrast

On white

12.65
#401880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#401880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401880
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401880#FFFFFF#000000##FFFFFF
##4018801.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#00317E
Tritanopia (blue-blind)
#2C364C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #401880;
/* rgb */ color: rgb(64, 24, 128);
/* oklch */ color: oklch(34.0% 0.159 293.4);
Tailwind
colors: {
  custom: {
    50: '#7c5aa6',
    500: '#401880',
    950: '#000000',
  },
}
SCSS
$custom: #401880;
$custom-light: #7c5aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#401880",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 263.077,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3401,
    "c": 0.15913,
    "h": 293.4
  },
  "luminance": 0.03302
}

Semantic roles & 50–950 ramp

primary
#401880
secondary
#87B440
accent
#EB3DA8
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #401880

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

Preview Lab → · Contrast checker → · Palette generator →

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