#8642C7#8642C7
#8642C7 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.1% C 0.199 H 303.8°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).
Color values
| HEX | #8642C7 |
|---|---|
| RGB | rgb(134, 66, 199) |
| HSL | hsl(271, 54%, 52%) |
| HSV | hsv(271, 67%, 78%) |
| CMYK | cmyk(32.7%, 66.8%, 0%, 22%) |
| CIE-LAB | lab(42.90, 53.53, -58.11) |
| CIE-LCH | lch(42.90, 79.01, 312.65°) |
| OKLab | oklab(53.12% 0.1104 -0.165) |
| OKLCH | oklch(53.12% 0.199 303.8) |
| XYZ | xyz(22.0862, 13.0883, 55.3845) |
| Luminance | 0.1309 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.75
Blueviolet
#8A2BE2
ΔE00 4.61
Purply
#983FB2
ΔE00 5.58
Bluish Purple
#703BE7
ΔE00 6.02
Royal Purple
#7851A9
ΔE00 6.29
Violet (survey)
#9A0EEA
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8642C7 #83C742
analogous
#4442C7 #8642C7 #C742C5
triadic
#8642C7 #C78642 #42C786
tetradic
#8642C7 #C74442 #83C742 #42C5C7
square
#8642C7 #C74442 #83C742 #42C5C7
split-complementary
#8642C7 #C5C742 #42C744
monochromatic
#48216E #672F9D #8642C7 #A471D5 #C2A0E3
Accessibility & contrast
On white
5.80
#8642C7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.62
#8642C7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8642C7
5.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8642C7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8642C7 | 1.00 | 5.80 | 3.62 | 5.80 |
| #FFFFFF | 5.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064CB
Deuteranopia (green-blind)
#0E65C4
Tritanopia (blue-blind)
#7A607F
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8642c7; /* rgb */ color: rgb(134, 66, 199); /* oklch */ color: oklch(53.1% 0.199 303.8);
Tailwind
colors: {
custom: {
50: '#ae7bd9',
500: '#8642c7',
950: '#000000',
},
}SCSS
$custom: #8642c7; $custom-light: #ae7bd9; $custom-dark: #000000;
JSON
{
"hex": "#8642c7",
"rgb": {
"r": 134,
"g": 66,
"b": 199
},
"hsl": {
"h": 270.677,
"s": 54.286,
"l": 51.961
},
"oklch": {
"l": 0.53119,
"c": 0.19857,
"h": 303.8
},
"luminance": 0.13088
}Semantic roles & 50–950 ramp
primary
#8642C7
secondary
#B2D095
accent
#DE4A92
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83