#663AAA#663AAA

#663AAA is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.3% C 0.171 H 297.3°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#663AAA
RGBrgb(102, 58, 170)
HSLhsl(264, 49%, 45%)
HSVhsv(264, 66%, 67%)
CMYKcmyk(40%, 65.9%, 0%, 33.3%)
CIE-LABlab(35.50, 43.60, -53.19)
CIE-LCHlch(35.50, 68.77, 309.34°)
OKLaboklab(46.29% 0.0784 -0.1516)
OKLCHoklch(46.29% 0.171 297.3)
XYZxyz(14.2464, 8.7529, 38.9613)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663AAA #7EAA3A
analogous
#3A46AA #663AAA #9E3AAA
triadic
#663AAA #AA663A #3AAA66
tetradic
#663AAA #AA3A46 #7EAA3A #3AAA9E
square
#663AAA #AA3A46 #7EAA3A #3AAA9E
split-complementary
#663AAA #AA9E3A #46AA3A
monochromatic
#2F1B4F #4B2A7C #663AAA #855AC7 #A788D6

Accessibility & contrast

On white

7.63
#663AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #663AAA
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663AAA#FFFFFF#000000##FFFFFF
##663AAA1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AD
Deuteranopia (green-blind)
#0052A8
Tritanopia (blue-blind)
#55546D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #663aaa;
/* rgb */ color: rgb(102, 58, 170);
/* oklch */ color: oklch(46.3% 0.171 297.3);
Tailwind
colors: {
  custom: {
    50: '#9773c4',
    500: '#663aaa',
    950: '#000000',
  },
}
SCSS
$custom: #663aaa;
$custom-light: #9773c4;
$custom-dark: #000000;
JSON
{
  "hex": "#663aaa",
  "rgb": {
    "r": 102,
    "g": 58,
    "b": 170
  },
  "hsl": {
    "h": 263.571,
    "s": 49.123,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46294,
    "c": 0.17069,
    "h": 297.3
  },
  "luminance": 0.08753
}

Semantic roles & 50–950 ramp

primary
#663AAA
secondary
#A7C17F
accent
#D94FA3
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #663AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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