#401062#401062

#401062 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.134 H 306.2°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#401062
RGBrgb(64, 16, 98)
HSLhsl(275, 72%, 22%)
HSVhsv(275, 84%, 38%)
CMYKcmyk(34.7%, 83.7%, 0%, 61.6%)
CIE-LABlab(17.19, 37.87, -38.04)
CIE-LCHlch(17.19, 53.68, 314.87°)
OKLaboklab(30.33% 0.0793 -0.1083)
OKLCHoklch(30.33% 0.134 306.2)
XYZxyz(4.5038, 2.3425, 11.7678)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401062 #326210
analogous
#171062 #401062 #62105B
triadic
#401062 #624010 #106240
tetradic
#401062 #621710 #326210 #105B62
square
#401062 #621710 #326210 #105B62
split-complementary
#401062 #5B6210 #106217
monochromatic
#11041A #1E072D #401062 #621997 #8521CB

Accessibility & contrast

On white

14.30
#401062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#401062 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401062
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401062#FFFFFF#000000##FFFFFF
##4010621.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002A60
Tritanopia (blue-blind)
#3A2539
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401062;
/* rgb */ color: rgb(64, 16, 98);
/* oklch */ color: oklch(30.3% 0.134 306.2);
Tailwind
colors: {
  custom: {
    50: '#79558f',
    500: '#401062',
    950: '#000000',
  },
}
SCSS
$custom: #401062;
$custom-light: #79558f;
$custom-dark: #000000;
JSON
{
  "hex": "#401062",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 98
  },
  "hsl": {
    "h": 275.122,
    "s": 71.93,
    "l": 22.353
  },
  "oklch": {
    "l": 0.30333,
    "c": 0.13424,
    "h": 306.2
  },
  "luminance": 0.02342
}

Semantic roles & 50–950 ramp

primary
#401062
secondary
#5E9B33
accent
#EF3984
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #401062

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

Preview Lab → · Contrast checker → · Palette generator →

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