#663AA4#663AA4

#663AA4 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.8% C 0.163 H 298.9°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#663AA4
RGBrgb(102, 58, 164)
HSLhsl(265, 48%, 44%)
HSVhsv(265, 65%, 64%)
CMYKcmyk(37.8%, 64.6%, 0%, 35.7%)
CIE-LABlab(35.07, 42.00, -50.30)
CIE-LCHlch(35.07, 65.53, 309.86°)
OKLaboklab(45.84% 0.0789 -0.1432)
OKLCHoklch(45.84% 0.163 298.9)
XYZxyz(13.6917, 8.5311, 36.0401)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663AA4 #78A43A
analogous
#3A43A4 #663AA4 #9B3AA4
triadic
#663AA4 #A4663A #3AA466
tetradic
#663AA4 #A43A43 #78A43A #3AA49B
square
#663AA4 #A43A43 #78A43A #3AA49B
split-complementary
#663AA4 #A49B3A #43A43A
monochromatic
#2E1A4A #4A2A77 #663AA4 #8457C4 #A585D4

Accessibility & contrast

On white

7.76
#663AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#663AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663AA4
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663AA4#FFFFFF#000000##FFFFFF
##663AA41.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A7
Deuteranopia (green-blind)
#0251A2
Tritanopia (blue-blind)
#58526A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #663aa4;
/* rgb */ color: rgb(102, 58, 164);
/* oklch */ color: oklch(45.8% 0.163 298.9);
Tailwind
colors: {
  custom: {
    50: '#9673c0',
    500: '#663aa4',
    950: '#000000',
  },
}
SCSS
$custom: #663aa4;
$custom-light: #9673c0;
$custom-dark: #000000;
JSON
{
  "hex": "#663aa4",
  "rgb": {
    "r": 102,
    "g": 58,
    "b": 164
  },
  "hsl": {
    "h": 264.906,
    "s": 47.748,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45839,
    "c": 0.16348,
    "h": 298.9
  },
  "luminance": 0.08531
}

Semantic roles & 50–950 ramp

primary
#663AA4
secondary
#A2BE7C
accent
#D7509F
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #663AA4

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

Preview Lab → · Contrast checker → · Palette generator →

#663AA4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva