#642CC2#642CC2
#642CC2 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.4% C 0.214 H 293.0°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).
Color values
| HEX | #642CC2 |
|---|---|
| RGB | rgb(100, 44, 194) |
| HSL | hsl(262, 63%, 47%) |
| HSV | hsv(262, 77%, 76%) |
| CMYK | cmyk(48.5%, 77.3%, 0%, 23.9%) |
| CIE-LAB | lab(34.81, 56.43, -68.54) |
| CIE-LCH | lch(34.81, 88.78, 309.47°) |
| OKLab | oklab(46.36% 0.0837 -0.1967) |
| OKLCH | oklch(46.36% 0.214 293) |
| XYZ | xyz(15.8911, 8.4052, 51.8136) |
| Luminance | 0.0841 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 2.46
Blurple
#5539CC
ΔE00 3.75
Blue With A Hint Of Purple
#533CC6
ΔE00 4.26
Bluey Purple
#6241C7
ΔE00 4.53
Burple
#6832E3
ΔE00 4.74
Violet Blue
#510AC9
ΔE00 4.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#642CC2 #8AC22C
analogous
#2C3FC2 #642CC2 #AF2CC2
triadic
#642CC2 #C2642C #2CC264
tetradic
#642CC2 #C22C3F #8AC22C #2CC2AF
square
#642CC2 #C22C3F #8AC22C #2CC2AF
split-complementary
#642CC2 #C2AF2C #3FC22C
monochromatic
#31155E #4A2190 #642CC2 #8553D8 #A885E3
Accessibility & contrast
On white
7.83
#642CC2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.68
#642CC2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #642CC2
7.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##642CC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##642CC2 | 1.00 | 7.83 | 2.68 | 7.83 |
| #FFFFFF | 7.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#004FBF
Tritanopia (blue-blind)
#465676
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #642cc2; /* rgb */ color: rgb(100, 44, 194); /* oklch */ color: oklch(46.4% 0.214 293.0);
Tailwind
colors: {
custom: {
50: '#996cd6',
500: '#642cc2',
950: '#000000',
},
}SCSS
$custom: #642cc2; $custom-light: #996cd6; $custom-dark: #000000;
JSON
{
"hex": "#642cc2",
"rgb": {
"r": 100,
"g": 44,
"b": 194
},
"hsl": {
"h": 262.4,
"s": 63.025,
"l": 46.667
},
"oklch": {
"l": 0.46364,
"c": 0.21377,
"h": 293
},
"luminance": 0.08406
}Semantic roles & 50–950 ramp
primary
#642CC2
secondary
#AFCD7D
accent
#E642A9
background
#FAF6FD
surface
#F3ECFA
border
#CDC7D3
text
#0F0714
muted
#7F7A83