#401663#401663

#401663 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.128 H 304.8°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#401663
RGBrgb(64, 22, 99)
HSLhsl(273, 64%, 24%)
HSVhsv(273, 78%, 39%)
CMYKcmyk(35.4%, 77.8%, 0%, 61.2%)
CIE-LABlab(18.21, 35.46, -37.05)
CIE-LCHlch(18.21, 51.28, 313.74°)
OKLaboklab(31.08% 0.0731 -0.1054)
OKLCHoklch(31.08% 0.128 304.8)
XYZxyz(4.6529, 2.5647, 12.0519)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401663 #396316
analogous
#191663 #401663 #63165F
triadic
#401663 #634016 #166340
tetradic
#401663 #631916 #396316 #165F63
square
#401663 #631916 #396316 #165F63
split-complementary
#401663 #5F6316 #166319
monochromatic
#100619 #200B31 #401663 #602195 #812CC7

Accessibility & contrast

On white

13.88
#401663 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#401663 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401663
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401663#FFFFFF#000000##FFFFFF
##4016631.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B65
Deuteranopia (green-blind)
#002C61
Tritanopia (blue-blind)
#39293B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401663;
/* rgb */ color: rgb(64, 22, 99);
/* oklch */ color: oklch(31.1% 0.128 304.8);
Tailwind
colors: {
  custom: {
    50: '#795890',
    500: '#401663',
    950: '#000000',
  },
}
SCSS
$custom: #401663;
$custom-light: #795890;
$custom-dark: #000000;
JSON
{
  "hex": "#401663",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 99
  },
  "hsl": {
    "h": 272.727,
    "s": 63.636,
    "l": 23.725
  },
  "oklch": {
    "l": 0.31076,
    "c": 0.1283,
    "h": 304.8
  },
  "luminance": 0.02565
}

Semantic roles & 50–950 ramp

primary
#401663
secondary
#669A3B
accent
#E7418C
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #401663

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

Preview Lab → · Contrast checker → · Palette generator →

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