#8640C4#8640C4
#8640C4 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.7% C 0.198 H 304.8°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).
Color values
| HEX | #8640C4 |
|---|---|
| RGB | rgb(134, 64, 196) |
| HSL | hsl(272, 53%, 51%) |
| HSV | hsv(272, 67%, 77%) |
| CMYK | cmyk(31.6%, 67.3%, 0%, 23.1%) |
| CIE-LAB | lab(42.34, 53.78, -57.26) |
| CIE-LCH | lch(42.34, 78.56, 313.21°) |
| OKLab | oklab(52.65% 0.1129 -0.1626) |
| OKLCH | oklch(52.65% 0.198 304.8) |
| XYZ | xyz(21.6265, 12.7208, 53.5299) |
| Luminance | 0.1272 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.57
Blueviolet
#8A2BE2
ΔE00 4.70
Purply
#983FB2
ΔE00 5.25
Darkviolet
#9400D3
ΔE00 6.10
Royal Purple
#7851A9
ΔE00 6.26
Bluish Purple
#703BE7
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8640C4 #7EC440
analogous
#4440C4 #8640C4 #C440C0
triadic
#8640C4 #C48640 #40C486
tetradic
#8640C4 #C44440 #7EC440 #40C0C4
square
#8640C4 #C44440 #7EC440 #40C0C4
split-complementary
#8640C4 #C0C440 #40C444
monochromatic
#472069 #672F98 #8640C4 #A46FD2 #C19EE1
Accessibility & contrast
On white
5.93
#8640C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.54
#8640C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8640C4
5.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8640C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8640C4 | 1.00 | 5.93 | 3.54 | 5.93 |
| #FFFFFF | 5.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C8
Deuteranopia (green-blind)
#1264C1
Tritanopia (blue-blind)
#7B5D7D
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8640c4; /* rgb */ color: rgb(134, 64, 196); /* oklch */ color: oklch(52.7% 0.198 304.8);
Tailwind
colors: {
custom: {
50: '#ae7ad7',
500: '#8640c4',
950: '#000000',
},
}SCSS
$custom: #8640c4; $custom-light: #ae7ad7; $custom-dark: #000000;
JSON
{
"hex": "#8640c4",
"rgb": {
"r": 134,
"g": 64,
"b": 196
},
"hsl": {
"h": 271.818,
"s": 52.8,
"l": 50.98
},
"oklch": {
"l": 0.52654,
"c": 0.19793,
"h": 304.8
},
"luminance": 0.12721
}Semantic roles & 50–950 ramp
primary
#8640C4
secondary
#AECD93
accent
#DC4C90
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83