#6642CC#6642CC
#6642CC is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.1% C 0.201 H 289.0°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).
Color values
| HEX | #6642CC |
|---|---|
| RGB | rgb(102, 66, 204) |
| HSL | hsl(256, 58%, 53%) |
| HSV | hsv(256, 68%, 80%) |
| CMYK | cmyk(50%, 67.6%, 0%, 20%) |
| CIE-LAB | lab(39.71, 48.69, -66.33) |
| CIE-LCH | lch(39.71, 82.29, 306.28°) |
| OKLab | oklab(50.15% 0.0655 -0.1903) |
| OKLCH | oklch(50.15% 0.201 289) |
| XYZ | xyz(18.3236, 11.0800, 58.2882) |
| Luminance | 0.1108 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 0.98
Blurple
#5539CC
ΔE00 3.26
Blue With A Hint Of Purple
#533CC6
ΔE00 3.33
Bluish Purple
#703BE7
ΔE00 3.84
Burple
#6832E3
ΔE00 3.89
Purpley Blue
#5F34E7
ΔE00 4.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6642CC #A8CC42
analogous
#4263CC #6642CC #AB42CC
triadic
#6642CC #CC6642 #42CC66
tetradic
#6642CC #CC4263 #A8CC42 #42CCAB
square
#6642CC #CC4263 #A8CC42 #42CCAB
split-complementary
#6642CC #CCAB42 #63CC42
monochromatic
#361F74 #4C2CA4 #6642CC #8D72D9 #B4A2E6
Accessibility & contrast
On white
6.53
#6642CC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.22
#6642CC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6642CC
6.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6642CC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6642CC | 1.00 | 6.53 | 3.22 | 6.53 |
| #FFFFFF | 6.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#005AC9
Tritanopia (blue-blind)
#426582
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #6642cc; /* rgb */ color: rgb(102, 66, 204); /* oklch */ color: oklch(50.1% 0.201 289.0);
Tailwind
colors: {
custom: {
50: '#9a79dd',
500: '#6642cc',
950: '#000000',
},
}SCSS
$custom: #6642cc; $custom-light: #9a79dd; $custom-dark: #000000;
JSON
{
"hex": "#6642cc",
"rgb": {
"r": 102,
"g": 66,
"b": 204
},
"hsl": {
"h": 255.652,
"s": 57.5,
"l": 52.941
},
"oklch": {
"l": 0.50146,
"c": 0.20127,
"h": 289
},
"luminance": 0.11081
}Semantic roles & 50–950 ramp
primary
#6642CC
secondary
#C3D397
accent
#E147B9
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83