#6642C7#6642C7
#6642C7 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.7% C 0.195 H 289.8°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).
Color values
| HEX | #6642C7 |
|---|---|
| RGB | rgb(102, 66, 199) |
| HSL | hsl(256, 54%, 52%) |
| HSV | hsv(256, 67%, 78%) |
| CMYK | cmyk(48.7%, 66.8%, 0%, 22%) |
| CIE-LAB | lab(39.32, 47.28, -64.08) |
| CIE-LCH | lch(39.32, 79.63, 306.42°) |
| OKLab | oklab(49.74% 0.0663 -0.1837) |
| OKLCH | oklch(49.74% 0.195 289.8) |
| XYZ | xyz(17.7336, 10.8440, 55.1805) |
| Luminance | 0.1085 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 0.70
Blue With A Hint Of Purple
#533CC6
ΔE00 3.24
Blurple
#5539CC
ΔE00 3.31
Burple
#6832E3
ΔE00 4.37
Bluish Purple
#703BE7
ΔE00 4.45
Ocean Blue
#4F42B5
ΔE00 4.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6642C7 #A3C742
analogous
#4260C7 #6642C7 #A942C7
triadic
#6642C7 #C76642 #42C766
tetradic
#6642C7 #C74260 #A3C742 #42C7A9
square
#6642C7 #C74260 #A3C742 #42C7A9
split-complementary
#6642C7 #C7A942 #60C742
monochromatic
#36216E #4D2F9D #6642C7 #8C71D5 #B2A0E3
Accessibility & contrast
On white
6.63
#6642C7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.17
#6642C7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6642C7
6.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6642C7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6642C7 | 1.00 | 6.63 | 3.17 | 6.63 |
| #FFFFFF | 6.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FCB
Deuteranopia (green-blind)
#0059C4
Tritanopia (blue-blind)
#46637F
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #6642c7; /* rgb */ color: rgb(102, 66, 199); /* oklch */ color: oklch(49.7% 0.195 289.8);
Tailwind
colors: {
custom: {
50: '#9a79d9',
500: '#6642c7',
950: '#000000',
},
}SCSS
$custom: #6642c7; $custom-light: #9a79d9; $custom-dark: #000000;
JSON
{
"hex": "#6642c7",
"rgb": {
"r": 102,
"g": 66,
"b": 199
},
"hsl": {
"h": 256.241,
"s": 54.286,
"l": 51.961
},
"oklch": {
"l": 0.49736,
"c": 0.19528,
"h": 289.8
},
"luminance": 0.10845
}Semantic roles & 50–950 ramp
primary
#6642C7
secondary
#C0D095
accent
#DE4AB6
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83