#6642C8#6642C8
#6642C8 is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.8% C 0.196 H 289.7°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).
Color values
| HEX | #6642C8 |
|---|---|
| RGB | rgb(102, 66, 200) |
| HSL | hsl(256, 55%, 52%) |
| HSV | hsv(256, 67%, 78%) |
| CMYK | cmyk(49%, 67%, 0%, 21.6%) |
| CIE-LAB | lab(39.40, 47.56, -64.53) |
| CIE-LCH | lch(39.40, 80.17, 306.39°) |
| OKLab | oklab(49.82% 0.0661 -0.185) |
| OKLCH | oklch(49.82% 0.196 289.7) |
| XYZ | xyz(17.8500, 10.8906, 55.7940) |
| Luminance | 0.1089 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 0.71
Blue With A Hint Of Purple
#533CC6
ΔE00 3.24
Blurple
#5539CC
ΔE00 3.29
Burple
#6832E3
ΔE00 4.27
Bluish Purple
#703BE7
ΔE00 4.33
Purpley Blue
#5F34E7
ΔE00 4.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6642C8 #A4C842
analogous
#4261C8 #6642C8 #A942C8
triadic
#6642C8 #C86642 #42C866
tetradic
#6642C8 #C84261 #A4C842 #42C8A9
square
#6642C8 #C84261 #A4C842 #42C8A9
split-complementary
#6642C8 #C8A942 #61C842
monochromatic
#36206F #4C2E9F #6642C8 #8C71D6 #B3A1E4
Accessibility & contrast
On white
6.61
#6642C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.18
#6642C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6642C8
6.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6642C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6642C8 | 1.00 | 6.61 | 3.18 | 6.61 |
| #FFFFFF | 6.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#005AC5
Tritanopia (blue-blind)
#45637F
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #6642c8; /* rgb */ color: rgb(102, 66, 200); /* oklch */ color: oklch(49.8% 0.196 289.7);
Tailwind
colors: {
custom: {
50: '#9a79da',
500: '#6642c8',
950: '#000000',
},
}SCSS
$custom: #6642c8; $custom-light: #9a79da; $custom-dark: #000000;
JSON
{
"hex": "#6642c8",
"rgb": {
"r": 102,
"g": 66,
"b": 200
},
"hsl": {
"h": 256.119,
"s": 54.918,
"l": 52.157
},
"oklch": {
"l": 0.49818,
"c": 0.19649,
"h": 289.7
},
"luminance": 0.10891
}Semantic roles & 50–950 ramp
primary
#6642C8
secondary
#C0D096
accent
#DE4AB6
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83