#8540C4#8540C4
#8540C4 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.5% C 0.198 H 304.4°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).
Color values
| HEX | #8540C4 |
|---|---|
| RGB | rgb(133, 64, 196) |
| HSL | hsl(271, 53%, 51%) |
| HSV | hsv(271, 67%, 77%) |
| CMYK | cmyk(32.1%, 67.3%, 0%, 23.1%) |
| CIE-LAB | lab(42.21, 53.58, -57.47) |
| CIE-LCH | lch(42.21, 78.57, 312.99°) |
| OKLab | oklab(52.54% 0.1116 -0.1632) |
| OKLCH | oklch(52.54% 0.198 304.4) |
| XYZ | xyz(21.4678, 12.6389, 53.5224) |
| Luminance | 0.1264 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.72
Blueviolet
#8A2BE2
ΔE00 4.68
Purply
#983FB2
ΔE00 5.41
Darkviolet
#9400D3
ΔE00 6.12
Bluish Purple
#703BE7
ΔE00 6.19
Royal Purple
#7851A9
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8540C4 #7FC440
analogous
#4340C4 #8540C4 #C440C1
triadic
#8540C4 #C48540 #40C485
tetradic
#8540C4 #C44340 #7FC440 #40C1C4
square
#8540C4 #C44340 #7FC440 #40C1C4
split-complementary
#8540C4 #C1C440 #40C443
monochromatic
#462069 #662F98 #8540C4 #A36FD2 #C19EE1
Accessibility & contrast
On white
5.95
#8540C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.53
#8540C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8540C4
5.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8540C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8540C4 | 1.00 | 5.95 | 3.53 | 5.95 |
| #FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C8
Deuteranopia (green-blind)
#0E64C1
Tritanopia (blue-blind)
#795E7D
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8540c4; /* rgb */ color: rgb(133, 64, 196); /* oklch */ color: oklch(52.5% 0.198 304.4);
Tailwind
colors: {
custom: {
50: '#ad7ad7',
500: '#8540c4',
950: '#000000',
},
}SCSS
$custom: #8540c4; $custom-light: #ad7ad7; $custom-dark: #000000;
JSON
{
"hex": "#8540c4",
"rgb": {
"r": 133,
"g": 64,
"b": 196
},
"hsl": {
"h": 271.364,
"s": 52.8,
"l": 50.98
},
"oklch": {
"l": 0.52536,
"c": 0.1977,
"h": 304.4
},
"luminance": 0.12639
}Semantic roles & 50–950 ramp
primary
#8540C4
secondary
#AFCD93
accent
#DC4C91
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83