#401081#401081

#401081 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.4% C 0.167 H 294.1°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#401081
RGBrgb(64, 16, 129)
HSLhsl(265, 78%, 28%)
HSVhsv(265, 88%, 51%)
CMYKcmyk(50.4%, 87.6%, 0%, 49.4%)
CIE-LABlab(20.22, 45.79, -53.14)
CIE-LCHlch(20.22, 70.15, 310.75°)
OKLaboklab(33.36% 0.0684 -0.1526)
OKLCHoklch(33.36% 0.167 294.1)
XYZxyz(6.2610, 3.0454, 21.0225)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401081 #518110
analogous
#101881 #401081 #781081
triadic
#401081 #814010 #108140
tetradic
#401081 #811018 #518110 #108178
square
#401081 #811018 #518110 #108178
split-complementary
#401081 #817810 #188110
monochromatic
#0E031B #25094B #401081 #5B17B7 #7727E4

Accessibility & contrast

On white

13.05
#401081 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#401081 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401081
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401081#FFFFFF#000000##FFFFFF
##4010811.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#2C334B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401081;
/* rgb */ color: rgb(64, 16, 129);
/* oklch */ color: oklch(33.4% 0.167 294.1);
Tailwind
colors: {
  custom: {
    50: '#7d57a7',
    500: '#401081',
    950: '#000000',
  },
}
SCSS
$custom: #401081;
$custom-light: #7d57a7;
$custom-dark: #000000;
JSON
{
  "hex": "#401081",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 129
  },
  "hsl": {
    "h": 265.487,
    "s": 77.931,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33358,
    "c": 0.16718,
    "h": 294.1
  },
  "luminance": 0.03046
}

Semantic roles & 50–950 ramp

primary
#401081
secondary
#80B736
accent
#F433A2
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0310
muted
#7C787F

Preview Lab

Preview with #401081

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

Preview Lab → · Contrast checker → · Palette generator →

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