#664CD7#664CD7
#664CD7 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 52.5% C 0.203 H 285.7°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).
Color values
| HEX | #664CD7 |
|---|---|
| RGB | rgb(102, 76, 215) |
| HSL | hsl(251, 63%, 57%) |
| HSV | hsv(251, 65%, 84%) |
| CMYK | cmyk(52.6%, 64.7%, 0%, 15.7%) |
| CIE-LAB | lab(42.61, 46.37, -67.95) |
| CIE-LCH | lch(42.61, 82.26, 304.31°) |
| OKLab | oklab(52.5% 0.0547 -0.195) |
| OKLCH | oklch(52.5% 0.203 285.7) |
| XYZ | xyz(20.3260, 12.8989, 65.6955) |
| Luminance | 0.1290 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpleish Blue
#6140EF
ΔE00 3.71
Bluey Purple
#6241C7
ΔE00 3.76
Light Indigo
#6D5ACF
ΔE00 4.12
Slate Blue
#6A5ACD
ΔE00 4.13
Bluish Purple
#703BE7
ΔE00 4.16
Iris
#6258C4
ΔE00 4.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#664CD7 #BDD74C
analogous
#4C78D7 #664CD7 #AC4CD7
triadic
#664CD7 #D7664C #4CD766
tetradic
#664CD7 #D74C78 #BDD74C #4CD7AC
square
#664CD7 #D74C78 #BDD74C #4CD7AC
split-complementary
#664CD7 #D7AC4C #78D74C
monochromatic
#331F8A #452ABC #664CD7 #917EE2 #BCB0ED
Accessibility & contrast
On white
5.87
#664CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.58
#664CD7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #664CD7
5.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##664CD7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##664CD7 | 1.00 | 5.87 | 3.58 | 5.87 |
| #FFFFFF | 5.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068DB
Deuteranopia (green-blind)
#0060D4
Tritanopia (blue-blind)
#386E8B
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #664cd7; /* rgb */ color: rgb(102, 76, 215); /* oklch */ color: oklch(52.5% 0.203 285.7);
Tailwind
colors: {
custom: {
50: '#9b80e4',
500: '#664cd7',
950: '#000000',
},
}SCSS
$custom: #664cd7; $custom-light: #9b80e4; $custom-dark: #000000;
JSON
{
"hex": "#664cd7",
"rgb": {
"r": 102,
"g": 76,
"b": 215
},
"hsl": {
"h": 251.223,
"s": 63.47,
"l": 57.059
},
"oklch": {
"l": 0.52504,
"c": 0.20257,
"h": 285.7
},
"luminance": 0.129
}Semantic roles & 50–950 ramp
primary
#664CD7
secondary
#D1DCA3
accent
#E641C8
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0A16
muted
#7F7C84