#401768#401768

#401768 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.133 H 302.3°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#401768
RGBrgb(64, 23, 104)
HSLhsl(270, 64%, 25%)
HSVhsv(270, 78%, 41%)
CMYKcmyk(38.5%, 77.9%, 0%, 59.2%)
CIE-LABlab(18.81, 36.29, -39.36)
CIE-LCHlch(18.81, 53.53, 312.68°)
OKLaboklab(31.64% 0.071 -0.1122)
OKLCHoklch(31.64% 0.133 302.3)
XYZxyz(4.9188, 2.7022, 13.3565)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401768 #3F6817
analogous
#171768 #401768 #681768
triadic
#401768 #684017 #176840
tetradic
#401768 #681717 #3F6817 #176868
square
#401768 #681717 #3F6817 #176868
split-complementary
#401768 #686817 #176817
monochromatic
#0F0619 #210C36 #401768 #5F229A #7E2DCC

Accessibility & contrast

On white

13.63
#401768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#401768 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401768
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401768#FFFFFF#000000##FFFFFF
##4017681.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002D66
Tritanopia (blue-blind)
#382B3E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401768;
/* rgb */ color: rgb(64, 23, 104);
/* oklch */ color: oklch(31.6% 0.133 302.3);
Tailwind
colors: {
  custom: {
    50: '#795894',
    500: '#401768',
    950: '#000000',
  },
}
SCSS
$custom: #401768;
$custom-light: #795894;
$custom-dark: #000000;
JSON
{
  "hex": "#401768",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 270.37,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.31636,
    "c": 0.13277,
    "h": 302.3
  },
  "luminance": 0.02702
}

Semantic roles & 50–950 ramp

primary
#401768
secondary
#6D9E3D
accent
#E74193
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401768

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

Preview Lab → · Contrast checker → · Palette generator →

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