#401076#401076

#401076 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.155 H 297.9°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#401076
RGBrgb(64, 16, 118)
HSLhsl(268, 76%, 26%)
HSVhsv(268, 86%, 46%)
CMYKcmyk(45.8%, 86.4%, 0%, 53.7%)
CIE-LABlab(19.09, 42.94, -47.98)
CIE-LCHlch(19.09, 64.39, 311.83°)
OKLaboklab(32.24% 0.0727 -0.1375)
OKLCHoklch(32.24% 0.156 297.9)
XYZxyz(5.5688, 2.7685, 17.3770)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401076 #467610
analogous
#101376 #401076 #731076
triadic
#401076 #764010 #107640
tetradic
#401076 #761013 #467610 #107673
square
#401076 #761013 #467610 #107673
split-complementary
#401076 #767310 #137610
monochromatic
#0F041B #230940 #401076 #5D17AC #7B20E1

Accessibility & contrast

On white

13.52
#401076 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#401076 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401076
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401076#FFFFFF#000000##FFFFFF
##4010761.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#322E45
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401076;
/* rgb */ color: rgb(64, 16, 118);
/* oklch */ color: oklch(32.2% 0.155 297.9);
Tailwind
colors: {
  custom: {
    50: '#7b569e',
    500: '#401076',
    950: '#000000',
  },
}
SCSS
$custom: #401076;
$custom-light: #7b569e;
$custom-dark: #000000;
JSON
{
  "hex": "#401076",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 118
  },
  "hsl": {
    "h": 268.235,
    "s": 76.119,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32237,
    "c": 0.1555,
    "h": 297.9
  },
  "luminance": 0.02769
}

Semantic roles & 50–950 ramp

primary
#401076
secondary
#74AD35
accent
#F33599
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #401076

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

Preview Lab → · Contrast checker → · Palette generator →

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