#401676#401676

#401676 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.150 H 297.0°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#401676
RGBrgb(64, 22, 118)
HSLhsl(266, 69%, 27%)
HSVhsv(266, 81%, 46%)
CMYKcmyk(45.8%, 81.4%, 0%, 53.7%)
CIE-LABlab(19.93, 40.50, -46.61)
CIE-LCHlch(19.93, 61.74, 310.99°)
OKLaboklab(32.82% 0.0681 -0.1335)
OKLCHoklch(32.82% 0.15 297)
XYZxyz(5.6704, 2.9717, 17.4109)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401676 #4C7616
analogous
#161C76 #401676 #701676
triadic
#401676 #764016 #167640
tetradic
#401676 #76161C #4C7616 #167670
square
#401676 #76161C #4C7616 #167670
split-complementary
#401676 #767016 #1C7616
monochromatic
#0E051A #240C42 #401676 #5C20AA #792ED8

Accessibility & contrast

On white

13.17
#401676 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#401676 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401676
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401676#FFFFFF#000000##FFFFFF
##4016761.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002F74
Tritanopia (blue-blind)
#323146
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401676;
/* rgb */ color: rgb(64, 22, 118);
/* oklch */ color: oklch(32.8% 0.150 297.0);
Tailwind
colors: {
  custom: {
    50: '#7b599e',
    500: '#401676',
    950: '#000000',
  },
}
SCSS
$custom: #401676;
$custom-light: #7b599e;
$custom-dark: #000000;
JSON
{
  "hex": "#401676",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 118
  },
  "hsl": {
    "h": 266.25,
    "s": 68.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32819,
    "c": 0.14983,
    "h": 297
  },
  "luminance": 0.02972
}

Semantic roles & 50–950 ramp

primary
#401676
secondary
#7BAC3C
accent
#EB3C9F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401676

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

Preview Lab → · Contrast checker → · Palette generator →

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