#664FB7#664FB7
#664FB7 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 50.6% C 0.158 H 289.7°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).
Color values
| HEX | #664FB7 |
|---|---|
| RGB | rgb(102, 79, 183) |
| HSL | hsl(253, 42%, 51%) |
| HSV | hsv(253, 57%, 72%) |
| CMYK | cmyk(44.3%, 56.8%, 0%, 28.2%) |
| CIE-LAB | lab(40.95, 35.23, -52.08) |
| CIE-LCH | lch(40.95, 62.88, 304.08°) |
| OKLab | oklab(50.56% 0.0533 -0.1484) |
| OKLCH | oklch(50.56% 0.158 289.7) |
| XYZ | xyz(16.8203, 11.8351, 46.1887) |
| Luminance | 0.1184 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Iris
#6258C4
ΔE00 3.64
Bluey Purple
#6241C7
ΔE00 4.48
Slate Blue
#6A5ACD
ΔE00 4.68
Light Indigo
#6D5ACF
ΔE00 4.92
Ocean Blue
#4F42B5
ΔE00 5.12
Royal Purple
#7851A9
ΔE00 5.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#664FB7 #A0B74F
analogous
#4F6CB7 #664FB7 #9A4FB7
triadic
#664FB7 #B7664F #4FB766
tetradic
#664FB7 #B74F6C #A0B74F #4FB79A
square
#664FB7 #B74F6C #A0B74F #4FB79A
split-complementary
#664FB7 #B79A4F #6CB74F
monochromatic
#352963 #4D3A8F #664FB7 #8C7AC9 #B2A6DB
Accessibility & contrast
On white
6.24
#664FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.37
#664FB7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #664FB7
6.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##664FB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##664FB7 | 1.00 | 6.24 | 3.37 | 6.24 |
| #FFFFFF | 6.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1163BA
Deuteranopia (green-blind)
#165EB5
Tritanopia (blue-blind)
#4E667B
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #664fb7; /* rgb */ color: rgb(102, 79, 183); /* oklch */ color: oklch(50.6% 0.158 289.7);
Tailwind
colors: {
custom: {
50: '#9781cd',
500: '#664fb7',
950: '#000000',
},
}SCSS
$custom: #664fb7; $custom-light: #9781cd; $custom-dark: #000000;
JSON
{
"hex": "#664fb7",
"rgb": {
"r": 102,
"g": 79,
"b": 183
},
"hsl": {
"h": 253.269,
"s": 41.935,
"l": 51.373
},
"oklch": {
"l": 0.50561,
"c": 0.15766,
"h": 289.7
},
"luminance": 0.11836
}Semantic roles & 50–950 ramp
primary
#664FB7
secondary
#BEC89A
accent
#D256B6
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0A13
muted
#7E7C82