#663AA2#663AA2

#663AA2 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.7% C 0.161 H 299.4°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#663AA2
RGBrgb(102, 58, 162)
HSLhsl(265, 47%, 43%)
HSVhsv(265, 64%, 64%)
CMYKcmyk(37%, 64.2%, 0%, 36.5%)
CIE-LABlab(34.92, 41.47, -49.33)
CIE-LCHlch(34.92, 64.45, 310.05°)
OKLaboklab(45.69% 0.0791 -0.1403)
OKLCHoklch(45.69% 0.161 299.4)
XYZxyz(13.5125, 8.4594, 35.0963)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663AA2 #76A23A
analogous
#3A42A2 #663AA2 #9A3AA2
triadic
#663AA2 #A2663A #3AA266
tetradic
#663AA2 #A23A42 #76A23A #3AA29A
square
#663AA2 #A23A42 #76A23A #3AA29A
split-complementary
#663AA2 #A29A3A #42A23A
monochromatic
#2D1A48 #4A2A75 #663AA2 #8457C3 #A584D3

Accessibility & contrast

On white

7.80
#663AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#663AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663AA2
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663AA2#FFFFFF#000000##FFFFFF
##663AA21.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#0951A0
Tritanopia (blue-blind)
#595168
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #663aa2;
/* rgb */ color: rgb(102, 58, 162);
/* oklch */ color: oklch(45.7% 0.161 299.4);
Tailwind
colors: {
  custom: {
    50: '#9673be',
    500: '#663aa2',
    950: '#000000',
  },
}
SCSS
$custom: #663aa2;
$custom-light: #9673be;
$custom-dark: #000000;
JSON
{
  "hex": "#663aa2",
  "rgb": {
    "r": 102,
    "g": 58,
    "b": 162
  },
  "hsl": {
    "h": 265.385,
    "s": 47.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45689,
    "c": 0.16108,
    "h": 299.4
  },
  "luminance": 0.0846
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #663AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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