#663AA6#663AA6

#663AA6 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.0% C 0.166 H 298.3°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#663AA6
RGBrgb(102, 58, 166)
HSLhsl(264, 48%, 44%)
HSVhsv(264, 65%, 65%)
CMYKcmyk(38.6%, 65.1%, 0%, 34.9%)
CIE-LABlab(35.21, 42.53, -51.27)
CIE-LCHlch(35.21, 66.61, 309.68°)
OKLaboklab(45.99% 0.0788 -0.146)
OKLCHoklch(45.99% 0.166 298.3)
XYZxyz(13.8737, 8.6039, 36.9988)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663AA6 #7AA63A
analogous
#3A44A6 #663AA6 #9C3AA6
triadic
#663AA6 #A6663A #3AA666
tetradic
#663AA6 #A63A44 #7AA63A #3AA69C
square
#663AA6 #A63A44 #7AA63A #3AA69C
split-complementary
#663AA6 #A69C3A #44A63A
monochromatic
#2E1A4B #4A2A79 #663AA6 #8558C5 #A686D5

Accessibility & contrast

On white

7.72
#663AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#663AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663AA6
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663AA6#FFFFFF#000000##FFFFFF
##663AA61.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A9
Deuteranopia (green-blind)
#0052A4
Tritanopia (blue-blind)
#57526B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #663aa6;
/* rgb */ color: rgb(102, 58, 166);
/* oklch */ color: oklch(46.0% 0.166 298.3);
Tailwind
colors: {
  custom: {
    50: '#9673c1',
    500: '#663aa6',
    950: '#000000',
  },
}
SCSS
$custom: #663aa6;
$custom-light: #9673c1;
$custom-dark: #000000;
JSON
{
  "hex": "#663aa6",
  "rgb": {
    "r": 102,
    "g": 58,
    "b": 166
  },
  "hsl": {
    "h": 264.444,
    "s": 48.214,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45989,
    "c": 0.1659,
    "h": 298.3
  },
  "luminance": 0.08604
}

Semantic roles & 50–950 ramp

primary
#663AA6
secondary
#A4BF7D
accent
#D850A0
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #663AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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