#6642BA#6642BA
#6642BA is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.7% C 0.179 H 292.2°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).
Color values
| HEX | #6642BA |
|---|---|
| RGB | rgb(102, 66, 186) |
| HSL | hsl(258, 48%, 49%) |
| HSV | hsv(258, 65%, 73%) |
| CMYK | cmyk(45.2%, 64.5%, 0%, 27.1%) |
| CIE-LAB | lab(38.32, 43.61, -58.11) |
| CIE-LCH | lch(38.32, 72.65, 306.89°) |
| OKLab | oklab(48.7% 0.0679 -0.1661) |
| OKLCH | oklch(48.7% 0.179 292.2) |
| XYZ | xyz(16.2882, 10.2659, 47.5682) |
| Luminance | 0.1027 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 2.07
Blue With A Hint Of Purple
#533CC6
ΔE00 3.78
Ocean Blue
#4F42B5
ΔE00 4.00
Blurple
#5539CC
ΔE00 4.16
Burple
#6832E3
ΔE00 5.92
Bluish Purple
#703BE7
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6642BA #96BA42
analogous
#425ABA #6642BA #A242BA
triadic
#6642BA #BA6642 #42BA66
tetradic
#6642BA #BA425A #96BA42 #42BAA2
square
#6642BA #BA425A #96BA42 #42BAA2
split-complementary
#6642BA #BAA242 #5ABA42
monochromatic
#342260 #4D328D #6642BA #8A6ECB #AE9BDB
Accessibility & contrast
On white
6.88
#6642BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.05
#6642BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6642BA
6.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6642BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6642BA | 1.00 | 6.88 | 3.05 | 6.88 |
| #FFFFFF | 6.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CBE
Deuteranopia (green-blind)
#0058B8
Tritanopia (blue-blind)
#4D5E78
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #6642ba; /* rgb */ color: rgb(102, 66, 186); /* oklch */ color: oklch(48.7% 0.179 292.2);
Tailwind
colors: {
custom: {
50: '#9878d0',
500: '#6642ba',
950: '#000000',
},
}SCSS
$custom: #6642ba; $custom-light: #9878d0; $custom-dark: #000000;
JSON
{
"hex": "#6642ba",
"rgb": {
"r": 102,
"g": 66,
"b": 186
},
"hsl": {
"h": 258,
"s": 47.619,
"l": 49.412
},
"oklch": {
"l": 0.48701,
"c": 0.17946,
"h": 292.2
},
"luminance": 0.10266
}Semantic roles & 50–950 ramp
primary
#6642BA
secondary
#B7C890
accent
#D751AF
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82