#664FD2#664FD2
#664FD2 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.6% C 0.193 H 285.7°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).
Color values
| HEX | #664FD2 |
|---|---|
| RGB | rgb(102, 79, 210) |
| HSL | hsl(251, 59%, 57%) |
| HSV | hsv(251, 62%, 82%) |
| CMYK | cmyk(51.4%, 62.4%, 0%, 17.6%) |
| CIE-LAB | lab(42.87, 43.19, -64.66) |
| CIE-LCH | lch(42.87, 77.76, 303.74°) |
| OKLab | oklab(52.57% 0.0522 -0.1854) |
| OKLCH | oklch(52.57% 0.193 285.7) |
| XYZ | xyz(19.9049, 13.0689, 62.4340) |
| Luminance | 0.1307 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Slate Blue
#6A5ACD
ΔE00 3.25
Light Indigo
#6D5ACF
ΔE00 3.31
Iris
#6258C4
ΔE00 3.44
Bluey Purple
#6241C7
ΔE00 4.08
Purpleish Blue
#6140EF
ΔE00 4.68
Dark Periwinkle
#665FD1
ΔE00 4.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#664FD2 #BBD24F
analogous
#4F7AD2 #664FD2 #A74FD2
triadic
#664FD2 #D2664F #4FD266
tetradic
#664FD2 #D24F7A #BBD24F #4FD2A7
square
#664FD2 #D24F7A #BBD24F #4FD2A7
split-complementary
#664FD2 #D2A74F #7AD24F
monochromatic
#332285 #462EB5 #664FD2 #9080DE #BBB0EB
Accessibility & contrast
On white
5.81
#664FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.61
#664FD2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #664FD2
5.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##664FD2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##664FD2 | 1.00 | 5.81 | 3.61 | 5.81 |
| #FFFFFF | 5.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0069D6
Deuteranopia (green-blind)
#0061CF
Tritanopia (blue-blind)
#3C6F89
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #664fd2; /* rgb */ color: rgb(102, 79, 210); /* oklch */ color: oklch(52.6% 0.193 285.7);
Tailwind
colors: {
custom: {
50: '#9a81e1',
500: '#664fd2',
950: '#000000',
},
}SCSS
$custom: #664fd2; $custom-light: #9a81e1; $custom-dark: #000000;
JSON
{
"hex": "#664fd2",
"rgb": {
"r": 102,
"g": 79,
"b": 210
},
"hsl": {
"h": 250.534,
"s": 59.276,
"l": 56.667
},
"oklch": {
"l": 0.5257,
"c": 0.19261,
"h": 285.7
},
"luminance": 0.1307
}Semantic roles & 50–950 ramp
primary
#664FD2
secondary
#D0D9A4
accent
#E245C7
background
#FAF8FD
surface
#F3EFFB
border
#CDCAD4
text
#0F0A15
muted
#7F7C83