#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 |
|---|---|
| RGB | rgb(102, 58, 178) |
| HSL | hsl(262, 51%, 46%) |
| HSV | hsv(262, 67%, 70%) |
| CMYK | cmyk(42.7%, 67.4%, 0%, 30.2%) |
| CIE-LAB | lab(36.11, 45.75, -56.97) |
| CIE-LCH | lch(36.11, 73.07, 308.77°) |
| OKLab | oklab(46.92% 0.0774 -0.1628) |
| OKLCH | oklch(46.92% 0.18 295.4) |
| XYZ | xyz(15.0263, 9.0649, 43.0689) |
| Luminance | 0.0906 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 3.74
Rebeccapurple
#663399
ΔE00 4.42
Blue With A Hint Of Purple
#533CC6
ΔE00 4.45
Blurple
#5539CC
ΔE00 4.69
Ocean Blue
#4F42B5
ΔE00 4.78
Purple Blue
#5D21D0
ΔE00 5.88
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 |
|---|---|---|---|---|
| ##663AB2 | 1.00 | 7.47 | 2.81 | 7.47 |
| #FFFFFF | 7.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.47 | 1.00 | 21.00 | 1.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