#663AA8#663AA8

#663AA8 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.1% C 0.168 H 297.8°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#663AA8
RGBrgb(102, 58, 168)
HSLhsl(264, 49%, 44%)
HSVhsv(264, 65%, 66%)
CMYKcmyk(39.3%, 65.5%, 0%, 34.1%)
CIE-LABlab(35.36, 43.06, -52.23)
CIE-LCHlch(35.36, 67.69, 309.50°)
OKLaboklab(46.14% 0.0786 -0.1488)
OKLCHoklch(46.14% 0.168 297.8)
XYZxyz(14.0586, 8.6778, 37.9725)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663AA8 #7CA83A
analogous
#3A45A8 #663AA8 #9D3AA8
triadic
#663AA8 #A8663A #3AA866
tetradic
#663AA8 #A83A45 #7CA83A #3AA89D
square
#663AA8 #A83A45 #7CA83A #3AA89D
split-complementary
#663AA8 #A89D3A #45A83A
monochromatic
#2F1B4D #4A2A7B #663AA8 #8559C6 #A687D6

Accessibility & contrast

On white

7.68
#663AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#663AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #663AA8
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663AA8#FFFFFF#000000##FFFFFF
##663AA81.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AB
Deuteranopia (green-blind)
#0052A6
Tritanopia (blue-blind)
#56536C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #663aa8;
/* rgb */ color: rgb(102, 58, 168);
/* oklch */ color: oklch(46.1% 0.168 297.8);
Tailwind
colors: {
  custom: {
    50: '#9773c3',
    500: '#663aa8',
    950: '#000000',
  },
}
SCSS
$custom: #663aa8;
$custom-light: #9773c3;
$custom-dark: #000000;
JSON
{
  "hex": "#663aa8",
  "rgb": {
    "r": 102,
    "g": 58,
    "b": 168
  },
  "hsl": {
    "h": 264,
    "s": 48.673,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46141,
    "c": 0.16829,
    "h": 297.8
  },
  "luminance": 0.08678
}

Semantic roles & 50–950 ramp

primary
#663AA8
secondary
#A5C07E
accent
#D850A2
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #663AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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