#401068#401068

#401068 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.141 H 303.5°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#401068
RGBrgb(64, 16, 104)
HSLhsl(273, 73%, 24%)
HSVhsv(273, 85%, 41%)
CMYKcmyk(38.5%, 84.6%, 0%, 59.2%)
CIE-LABlab(17.74, 39.37, -41.11)
CIE-LCHlch(17.74, 56.92, 313.76°)
OKLaboklab(30.88% 0.0775 -0.1173)
OKLCHoklch(30.88% 0.141 303.5)
XYZxyz(4.7977, 2.4600, 13.3161)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401068 #386810
analogous
#141068 #401068 #681064
triadic
#401068 #684010 #106840
tetradic
#401068 #681410 #386810 #106468
square
#401068 #681410 #386810 #106468
split-complementary
#401068 #646810 #106814
monochromatic
#10041B #1F0833 #401068 #61189D #8120D2

Accessibility & contrast

On white

14.08
#401068 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#401068 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401068
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401068#FFFFFF#000000##FFFFFF
##4010681.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002B66
Tritanopia (blue-blind)
#38283C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401068;
/* rgb */ color: rgb(64, 16, 104);
/* oklch */ color: oklch(30.9% 0.141 303.5);
Tailwind
colors: {
  custom: {
    50: '#7a5594',
    500: '#401068',
    950: '#000000',
  },
}
SCSS
$custom: #401068;
$custom-light: #7a5594;
$custom-dark: #000000;
JSON
{
  "hex": "#401068",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 104
  },
  "hsl": {
    "h": 272.727,
    "s": 73.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30884,
    "c": 0.14061,
    "h": 303.5
  },
  "luminance": 0.0246
}

Semantic roles & 50–950 ramp

primary
#401068
secondary
#65A034
accent
#F0388C
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #401068

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

Preview Lab → · Contrast checker → · Palette generator →

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