#663AA1#663AA1

#663AA1 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.6% C 0.160 H 299.7°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#663AA1
RGBrgb(102, 58, 161)
HSLhsl(266, 47%, 43%)
HSVhsv(266, 64%, 63%)
CMYKcmyk(36.6%, 64%, 0%, 36.9%)
CIE-LABlab(34.85, 41.20, -48.85)
CIE-LCHlch(34.85, 63.90, 310.15°)
OKLaboklab(45.62% 0.0792 -0.1389)
OKLCHoklch(45.62% 0.16 299.7)
XYZxyz(13.4240, 8.4240, 34.6301)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663AA1 #75A13A
analogous
#3A41A1 #663AA1 #993AA1
triadic
#663AA1 #A1663A #3AA166
tetradic
#663AA1 #A13A41 #75A13A #3AA199
square
#663AA1 #A13A41 #75A13A #3AA199
split-complementary
#663AA1 #A1993A #41A13A
monochromatic
#2D1A47 #492A74 #663AA1 #8456C2 #A583D2

Accessibility & contrast

On white

7.82
#663AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#663AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663AA1
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663AA1#FFFFFF#000000##FFFFFF
##663AA11.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A4
Deuteranopia (green-blind)
#0D519F
Tritanopia (blue-blind)
#595168
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #663aa1;
/* rgb */ color: rgb(102, 58, 161);
/* oklch */ color: oklch(45.6% 0.160 299.7);
Tailwind
colors: {
  custom: {
    50: '#9673bd',
    500: '#663aa1',
    950: '#000000',
  },
}
SCSS
$custom: #663aa1;
$custom-light: #9673bd;
$custom-dark: #000000;
JSON
{
  "hex": "#663aa1",
  "rgb": {
    "r": 102,
    "g": 58,
    "b": 161
  },
  "hsl": {
    "h": 265.631,
    "s": 47.032,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45615,
    "c": 0.15987,
    "h": 299.7
  },
  "luminance": 0.08424
}

Semantic roles & 50–950 ramp

primary
#663AA1
secondary
#A0BC7B
accent
#D7519E
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #663AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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