#664DCD#664DCD
#664DCD is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.9% C 0.189 H 286.8°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).
Color values
| HEX | #664DCD |
|---|---|
| RGB | rgb(102, 77, 205) |
| HSL | hsl(252, 56%, 55%) |
| HSV | hsv(252, 62%, 80%) |
| CMYK | cmyk(50.2%, 62.4%, 0%, 19.6%) |
| CIE-LAB | lab(42.06, 42.86, -63.09) |
| CIE-LCH | lch(42.06, 76.27, 304.19°) |
| OKLab | oklab(51.87% 0.0546 -0.1808) |
| OKLCH | oklch(51.87% 0.189 286.8) |
| XYZ | xyz(19.1496, 12.5394, 59.1571) |
| Luminance | 0.1254 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 3.30
Iris
#6258C4
ΔE00 3.63
Slate Blue
#6A5ACD
ΔE00 3.76
Light Indigo
#6D5ACF
ΔE00 3.85
Purpleish Blue
#6140EF
ΔE00 4.91
Bluish Purple
#703BE7
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#664DCD #B4CD4D
analogous
#4D74CD #664DCD #A64DCD
triadic
#664DCD #CD664D #4DCD66
tetradic
#664DCD #CD4D74 #B4CD4D #4DCDA6
square
#664DCD #CD4D74 #B4CD4D #4DCDA6
split-complementary
#664DCD #CDA64D #74CD4D
monochromatic
#35237D #4930AC #664DCD #8F7DDA #B8ADE8
Accessibility & contrast
On white
5.99
#664DCD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.51
#664DCD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #664DCD
5.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##664DCD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##664DCD | 1.00 | 5.99 | 3.51 | 5.99 |
| #FFFFFF | 5.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#0060CA
Tritanopia (blue-blind)
#406C86
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #664dcd; /* rgb */ color: rgb(102, 77, 205); /* oklch */ color: oklch(51.9% 0.189 286.8);
Tailwind
colors: {
custom: {
50: '#9a80dd',
500: '#664dcd',
950: '#000000',
},
}SCSS
$custom: #664dcd; $custom-light: #9a80dd; $custom-dark: #000000;
JSON
{
"hex": "#664dcd",
"rgb": {
"r": 102,
"g": 77,
"b": 205
},
"hsl": {
"h": 251.719,
"s": 56.14,
"l": 55.294
},
"oklch": {
"l": 0.51866,
"c": 0.18886,
"h": 286.8
},
"luminance": 0.1254
}Semantic roles & 50–950 ramp
primary
#664DCD
secondary
#CBD6A0
accent
#DF48C2
background
#FAF7FD
surface
#F3EEFB
border
#CDC9D4
text
#0F0A15
muted
#7F7C83