#663F99#663F99
#663F99 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 45.8% C 0.143 H 300.9°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).
Color values
| HEX | #663F99 |
|---|---|
| RGB | rgb(102, 63, 153) |
| HSL | hsl(266, 42%, 42%) |
| HSV | hsv(266, 59%, 60%) |
| CMYK | cmyk(33.3%, 58.8%, 0%, 40%) |
| CIE-LAB | lab(35.36, 36.27, -43.19) |
| CIE-LCH | lch(35.36, 56.40, 310.02°) |
| OKLab | oklab(45.81% 0.0732 -0.1223) |
| OKLCH | oklch(45.81% 0.143 300.9) |
| XYZ | xyz(13.0054, 8.6796, 31.1210) |
| Luminance | 0.0868 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.04
Royal Purple
#7851A9
ΔE00 6.11
Darkslateblue
#483D8B
ΔE00 6.31
Blueberry
#464196
ΔE00 6.88
Ocean Blue
#4F42B5
ΔE00 7.08
Bluey Purple
#6241C7
ΔE00 7.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#663F99 #72993F
analogous
#3F4599 #663F99 #933F99
triadic
#663F99 #99663F #3F9966
tetradic
#663F99 #993F45 #72993F #3F9993
square
#663F99 #993F45 #72993F #3F9993
split-complementary
#663F99 #99933F #45993F
monochromatic
#2C1B42 #492D6E #663F99 #845ABB #A485CD
Accessibility & contrast
On white
7.68
#663F99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.74
#663F99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #663F99
7.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##663F99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##663F99 | 1.00 | 7.68 | 2.74 | 7.68 |
| #FFFFFF | 7.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#15539C
Deuteranopia (green-blind)
#265397
Tritanopia (blue-blind)
#5C5166
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #663f99; /* rgb */ color: rgb(102, 63, 153); /* oklch */ color: oklch(45.8% 0.143 300.9);
Tailwind
colors: {
custom: {
50: '#9576b8',
500: '#663f99',
950: '#000000',
},
}SCSS
$custom: #663f99; $custom-light: #9576b8; $custom-dark: #000000;
JSON
{
"hex": "#663f99",
"rgb": {
"r": 102,
"g": 63,
"b": 153
},
"hsl": {
"h": 266,
"s": 41.667,
"l": 42.353
},
"oklch": {
"l": 0.45813,
"c": 0.14252,
"h": 300.9
},
"luminance": 0.0868
}Semantic roles & 50–950 ramp
primary
#663F99
secondary
#9EB77C
accent
#D1569C
background
#F9F7FB
surface
#F2EDF6
border
#CCC8D0
text
#0E0811
muted
#7E7B80