#401061#401061

#401061 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.133 H 306.7°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#401061
RGBrgb(64, 16, 97)
HSLhsl(276, 72%, 22%)
HSVhsv(276, 84%, 38%)
CMYKcmyk(34%, 83.5%, 0%, 62%)
CIE-LABlab(17.10, 37.62, -37.52)
CIE-LCHlch(17.10, 53.14, 315.07°)
OKLaboklab(30.24% 0.0796 -0.1068)
OKLCHoklch(30.24% 0.133 306.7)
XYZxyz(4.4568, 2.3237, 11.5207)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401061 #316110
analogous
#181061 #401061 #611059
triadic
#401061 #614010 #106140
tetradic
#401061 #611810 #316110 #105961
square
#401061 #611810 #316110 #105961
split-complementary
#401061 #596110 #106118
monochromatic
#11041A #1D072C #401061 #631996 #8521CA

Accessibility & contrast

On white

14.34
#401061 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#401061 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401061
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401061#FFFFFF#000000##FFFFFF
##4010611.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002963
Deuteranopia (green-blind)
#002A5F
Tritanopia (blue-blind)
#3A2538
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401061;
/* rgb */ color: rgb(64, 16, 97);
/* oklch */ color: oklch(30.2% 0.133 306.7);
Tailwind
colors: {
  custom: {
    50: '#79558f',
    500: '#401061',
    950: '#000000',
  },
}
SCSS
$custom: #401061;
$custom-light: #79558f;
$custom-dark: #000000;
JSON
{
  "hex": "#401061",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 97
  },
  "hsl": {
    "h": 275.556,
    "s": 71.681,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30243,
    "c": 0.13318,
    "h": 306.7
  },
  "luminance": 0.02324
}

Semantic roles & 50–950 ramp

primary
#401061
secondary
#5D9A33
accent
#EE3983
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #401061

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

Preview Lab → · Contrast checker → · Palette generator →

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