#664CCC#664CCC
#664CCC is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.6% C 0.189 H 287.2°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).
Color values
| HEX | #664CCC |
|---|---|
| RGB | rgb(102, 76, 204) |
| HSL | hsl(252, 56%, 55%) |
| HSV | hsv(252, 63%, 80%) |
| CMYK | cmyk(50%, 62.7%, 0%, 20%) |
| CIE-LAB | lab(41.77, 43.14, -62.99) |
| CIE-LCH | lch(41.77, 76.34, 304.40°) |
| OKLab | oklab(51.63% 0.0557 -0.1805) |
| OKLCH | oklch(51.63% 0.189 287.2) |
| XYZ | xyz(18.9598, 12.3524, 58.5003) |
| Luminance | 0.1235 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 3.00
Iris
#6258C4
ΔE00 3.84
Slate Blue
#6A5ACD
ΔE00 4.04
Light Indigo
#6D5ACF
ΔE00 4.13
Purpleish Blue
#6140EF
ΔE00 4.91
Bluish Purple
#703BE7
ΔE00 4.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#664CCC #B2CC4C
analogous
#4C72CC #664CCC #A64CCC
triadic
#664CCC #CC664C #4CCC66
tetradic
#664CCC #CC4C72 #B2CC4C #4CCCA6
square
#664CCC #CC4C72 #B2CC4C #4CCCA6
split-complementary
#664CCC #CCA64C #72CC4C
monochromatic
#35237B #4931AA #664CCC #8F7CDA #B7ABE7
Accessibility & contrast
On white
6.05
#664CCC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.47
#664CCC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #664CCC
6.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##664CCC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##664CCC | 1.00 | 6.05 | 3.47 | 6.05 |
| #FFFFFF | 6.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066D0
Deuteranopia (green-blind)
#005FC9
Tritanopia (blue-blind)
#416B85
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #664ccc; /* rgb */ color: rgb(102, 76, 204); /* oklch */ color: oklch(51.6% 0.189 287.2);
Tailwind
colors: {
custom: {
50: '#9a7fdc',
500: '#664ccc',
950: '#000000',
},
}SCSS
$custom: #664ccc; $custom-light: #9a7fdc; $custom-dark: #000000;
JSON
{
"hex": "#664ccc",
"rgb": {
"r": 102,
"g": 76,
"b": 204
},
"hsl": {
"h": 252.188,
"s": 55.652,
"l": 54.902
},
"oklch": {
"l": 0.51632,
"c": 0.18888,
"h": 287.2
},
"luminance": 0.12353
}Semantic roles & 50–950 ramp
primary
#664CCC
secondary
#CAD59F
accent
#DF49C0
background
#FAF7FD
surface
#F3EEFB
border
#CDC9D4
text
#0F0A15
muted
#7F7C83