#663BA7#663BA7

#663BA7 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.2% C 0.166 H 297.9°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#663BA7
RGBrgb(102, 59, 167)
HSLhsl(264, 48%, 44%)
HSVhsv(264, 65%, 65%)
CMYKcmyk(38.9%, 64.7%, 0%, 34.5%)
CIE-LABlab(35.48, 42.25, -51.43)
CIE-LCHlch(35.48, 66.56, 309.41°)
OKLaboklab(46.21% 0.0775 -0.1465)
OKLCHoklch(46.21% 0.166 297.9)
XYZxyz(14.0167, 8.7425, 37.5007)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663BA7 #7CA73B
analogous
#3B46A7 #663BA7 #9C3BA7
triadic
#663BA7 #A7663B #3BA766
tetradic
#663BA7 #A73B46 #7CA73B #3BA79C
square
#663BA7 #A73B46 #7CA73B #3BA79C
split-complementary
#663BA7 #A79C3B #46A73B
monochromatic
#2F1B4D #4A2B7A #663BA7 #855AC5 #A688D5

Accessibility & contrast

On white

7.64
#663BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#663BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663BA7
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663BA7#FFFFFF#000000##FFFFFF
##663BA71.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AA
Deuteranopia (green-blind)
#0052A5
Tritanopia (blue-blind)
#57536B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #663ba7;
/* rgb */ color: rgb(102, 59, 167);
/* oklch */ color: oklch(46.2% 0.166 297.9);
Tailwind
colors: {
  custom: {
    50: '#9773c2',
    500: '#663ba7',
    950: '#000000',
  },
}
SCSS
$custom: #663ba7;
$custom-light: #9773c2;
$custom-dark: #000000;
JSON
{
  "hex": "#663ba7",
  "rgb": {
    "r": 102,
    "g": 59,
    "b": 167
  },
  "hsl": {
    "h": 263.889,
    "s": 47.788,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4621,
    "c": 0.16571,
    "h": 297.9
  },
  "luminance": 0.08743
}

Semantic roles & 50–950 ramp

primary
#663BA7
secondary
#A5BF7F
accent
#D750A2
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #663BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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