#663AA5#663AA5

#663AA5 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 45.9% C 0.165 H 298.6°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#663AA5
RGBrgb(102, 58, 165)
HSLhsl(265, 48%, 44%)
HSVhsv(265, 65%, 65%)
CMYKcmyk(38.2%, 64.8%, 0%, 35.3%)
CIE-LABlab(35.14, 42.26, -50.79)
CIE-LCHlch(35.14, 66.07, 309.77°)
OKLaboklab(45.91% 0.0789 -0.1446)
OKLCHoklch(45.91% 0.165 298.6)
XYZxyz(13.7824, 8.5673, 36.5175)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663AA5 #79A53A
analogous
#3A43A5 #663AA5 #9B3AA5
triadic
#663AA5 #A5663A #3AA566
tetradic
#663AA5 #A53A43 #79A53A #3AA59B
square
#663AA5 #A53A43 #79A53A #3AA59B
split-complementary
#663AA5 #A59B3A #43A53A
monochromatic
#2E1A4A #4A2A78 #663AA5 #8458C4 #A685D4

Accessibility & contrast

On white

7.74
#663AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #663AA5
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663AA5#FFFFFF#000000##FFFFFF
##663AA51.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A8
Deuteranopia (green-blind)
#0052A3
Tritanopia (blue-blind)
#57526A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #663aa5;
/* rgb */ color: rgb(102, 58, 165);
/* oklch */ color: oklch(45.9% 0.165 298.6);
Tailwind
colors: {
  custom: {
    50: '#9673c0',
    500: '#663aa5',
    950: '#000000',
  },
}
SCSS
$custom: #663aa5;
$custom-light: #9673c0;
$custom-dark: #000000;
JSON
{
  "hex": "#663aa5",
  "rgb": {
    "r": 102,
    "g": 58,
    "b": 165
  },
  "hsl": {
    "h": 264.673,
    "s": 47.982,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45914,
    "c": 0.16469,
    "h": 298.6
  },
  "luminance": 0.08568
}

Semantic roles & 50–950 ramp

primary
#663AA5
secondary
#A3BE7D
accent
#D850A0
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #663AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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