#401168#401168

#401168 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.140 H 303.3°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#401168
RGBrgb(64, 17, 104)
HSLhsl(272, 72%, 24%)
HSVhsv(272, 84%, 41%)
CMYKcmyk(38.5%, 83.7%, 0%, 59.2%)
CIE-LABlab(17.88, 38.97, -40.88)
CIE-LCHlch(17.88, 56.48, 313.63°)
OKLaboklab(30.98% 0.0767 -0.1166)
OKLCHoklch(30.98% 0.14 303.3)
XYZxyz(4.8129, 2.4904, 13.3211)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401168 #396811
analogous
#141168 #401168 #681164
triadic
#401168 #684011 #116840
tetradic
#401168 #681411 #396811 #116468
square
#401168 #681411 #396811 #116468
split-complementary
#401168 #646811 #116814
monochromatic
#10041A #200833 #401168 #601A9D #8122D1

Accessibility & contrast

On white

14.02
#401168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#401168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401168
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401168#FFFFFF#000000##FFFFFF
##4011681.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002C66
Tritanopia (blue-blind)
#38283D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401168;
/* rgb */ color: rgb(64, 17, 104);
/* oklch */ color: oklch(31.0% 0.140 303.3);
Tailwind
colors: {
  custom: {
    50: '#7a5694',
    500: '#401168',
    950: '#000000',
  },
}
SCSS
$custom: #401168;
$custom-light: #7a5694;
$custom-dark: #000000;
JSON
{
  "hex": "#401168",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 272.414,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.3098,
    "c": 0.13959,
    "h": 303.3
  },
  "luminance": 0.0249
}

Semantic roles & 50–950 ramp

primary
#401168
secondary
#66A035
accent
#EF398D
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #401168

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

Preview Lab → · Contrast checker → · Palette generator →

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