#663AB2#663AB2

#663AB2 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.9% C 0.180 H 295.4°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#663AB2
RGBrgb(102, 58, 178)
HSLhsl(262, 51%, 46%)
HSVhsv(262, 67%, 70%)
CMYKcmyk(42.7%, 67.4%, 0%, 30.2%)
CIE-LABlab(36.11, 45.75, -56.97)
CIE-LCHlch(36.11, 73.07, 308.77°)
OKLaboklab(46.92% 0.0774 -0.1628)
OKLCHoklch(46.92% 0.18 295.4)
XYZxyz(15.0263, 9.0649, 43.0689)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663AB2 #86B23A
analogous
#3A4AB2 #663AB2 #A23AB2
triadic
#663AB2 #B2663A #3AB266
tetradic
#663AB2 #B23A4A #86B23A #3AB2A2
square
#663AB2 #B23A4A #86B23A #3AB2A2
split-complementary
#663AB2 #B2A23A #4AB23A
monochromatic
#311C56 #4C2B84 #663AB2 #865FCB #A98DDA

Accessibility & contrast

On white

7.47
#663AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#663AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663AB2
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663AB2#FFFFFF#000000##FFFFFF
##663AB21.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#525771
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #663ab2;
/* rgb */ color: rgb(102, 58, 178);
/* oklch */ color: oklch(46.9% 0.180 295.4);
Tailwind
colors: {
  custom: {
    50: '#9873ca',
    500: '#663ab2',
    950: '#000000',
  },
}
SCSS
$custom: #663ab2;
$custom-light: #9873ca;
$custom-dark: #000000;
JSON
{
  "hex": "#663ab2",
  "rgb": {
    "r": 102,
    "g": 58,
    "b": 178
  },
  "hsl": {
    "h": 262,
    "s": 50.847,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4692,
    "c": 0.1802,
    "h": 295.4
  },
  "luminance": 0.09065
}

Semantic roles & 50–950 ramp

primary
#663AB2
secondary
#ADC483
accent
#DA4DA7
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #663AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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