#401060#401060

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

Color values

HEX#401060
RGBrgb(64, 16, 96)
HSLhsl(276, 71%, 22%)
HSVhsv(276, 83%, 38%)
CMYKcmyk(33.3%, 83.3%, 0%, 62.4%)
CIE-LABlab(17.01, 37.37, -37.00)
CIE-LCHlch(17.01, 52.59, 315.29°)
OKLaboklab(30.15% 0.0799 -0.1052)
OKLCHoklch(30.15% 0.132 307.2)
XYZxyz(4.4105, 2.3052, 11.2767)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401060 #306010
analogous
#181060 #401060 #601058
triadic
#401060 #604010 #106040
tetradic
#401060 #601810 #306010 #105860
square
#401060 #601810 #306010 #105860
split-complementary
#401060 #586010 #106018
monochromatic
#11041A #1D072C #401060 #631994 #8621C9

Accessibility & contrast

On white

14.37
#401060 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401060
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401060#FFFFFF#000000##FFFFFF
##4010601.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002862
Deuteranopia (green-blind)
#002A5E
Tritanopia (blue-blind)
#3B2438
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401060;
/* rgb */ color: rgb(64, 16, 96);
/* oklch */ color: oklch(30.2% 0.132 307.2);
Tailwind
colors: {
  custom: {
    50: '#79558e',
    500: '#401060',
    950: '#000000',
  },
}
SCSS
$custom: #401060;
$custom-light: #79558e;
$custom-dark: #000000;
JSON
{
  "hex": "#401060",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 96
  },
  "hsl": {
    "h": 276,
    "s": 71.429,
    "l": 21.961
  },
  "oklch": {
    "l": 0.30154,
    "c": 0.13212,
    "h": 307.2
  },
  "luminance": 0.02305
}

Semantic roles & 50–950 ramp

primary
#401060
secondary
#5C9933
accent
#EE3A82
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #401060

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

Preview Lab → · Contrast checker → · Palette generator →

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