#663A9B#663A9B
#663A9B is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.2% C 0.153 H 301.4°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).
Color values
| HEX | #663A9B |
|---|---|
| RGB | rgb(102, 58, 155) |
| HSL | hsl(267, 46%, 42%) |
| HSV | hsv(267, 63%, 61%) |
| CMYK | cmyk(34.2%, 62.6%, 0%, 39.2%) |
| CIE-LAB | lab(34.43, 39.63, -45.90) |
| CIE-LCH | lch(34.43, 60.64, 310.81°) |
| OKLab | oklab(45.18% 0.0796 -0.1302) |
| OKLCH | oklch(45.18% 0.153 301.4) |
| XYZ | xyz(12.9075, 8.2174, 31.9101) |
| Luminance | 0.0822 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 1.71
Purple (survey)
#7E1E9C
ΔE00 6.61
Darkslateblue
#483D8B
ΔE00 6.65
Ocean Blue
#4F42B5
ΔE00 7.02
Royal Purple
#7851A9
ΔE00 7.07
Blueberry
#464196
ΔE00 7.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#663A9B #6F9B3A
analogous
#3A3F9B #663A9B #973A9B
triadic
#663A9B #9B663A #3A9B66
tetradic
#663A9B #9B3A3F #6F9B3A #3A9B97
square
#663A9B #9B3A3F #6F9B3A #3A9B97
split-complementary
#663A9B #9B973A #3F9B3A
monochromatic
#2B1942 #49296E #663A9B #8453BF #A480CF
Accessibility & contrast
On white
7.94
#663A9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.64
#663A9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #663A9B
7.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##663A9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##663A9B | 1.00 | 7.94 | 2.64 | 7.94 |
| #FFFFFF | 7.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00509E
Deuteranopia (green-blind)
#1A5099
Tritanopia (blue-blind)
#5B4F65
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #663a9b; /* rgb */ color: rgb(102, 58, 155); /* oklch */ color: oklch(45.2% 0.153 301.4);
Tailwind
colors: {
custom: {
50: '#9572b9',
500: '#663a9b',
950: '#000000',
},
}SCSS
$custom: #663a9b; $custom-light: #9572b9; $custom-dark: #000000;
JSON
{
"hex": "#663a9b",
"rgb": {
"r": 102,
"g": 58,
"b": 155
},
"hsl": {
"h": 267.216,
"s": 45.54,
"l": 41.765
},
"oklch": {
"l": 0.45178,
"c": 0.15259,
"h": 301.4
},
"luminance": 0.08217
}Semantic roles & 50–950 ramp
primary
#663A9B
secondary
#9BB978
accent
#D5539A
background
#F9F7FB
surface
#F2EDF6
border
#CCC8D0
text
#0E0811
muted
#7E7B80