#8540C5#8540C5
#8540C5 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.6% C 0.199 H 304.1°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).
Color values
| HEX | #8540C5 |
|---|---|
| RGB | rgb(133, 64, 197) |
| HSL | hsl(271, 53%, 51%) |
| HSV | hsv(271, 68%, 77%) |
| CMYK | cmyk(32.5%, 67.5%, 0%, 22.7%) |
| CIE-LAB | lab(42.28, 53.81, -57.94) |
| CIE-LCH | lch(42.28, 79.08, 312.88°) |
| OKLab | oklab(52.61% 0.1115 -0.1646) |
| OKLCH | oklch(52.61% 0.199 304.1) |
| XYZ | xyz(21.5820, 12.6846, 54.1239) |
| Luminance | 0.1268 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.72
Blueviolet
#8A2BE2
ΔE00 4.56
Purply
#983FB2
ΔE00 5.52
Bluish Purple
#703BE7
ΔE00 6.06
Darkviolet
#9400D3
ΔE00 6.10
Bluey Purple
#6241C7
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8540C5 #80C540
analogous
#4240C5 #8540C5 #C540C2
triadic
#8540C5 #C58540 #40C585
tetradic
#8540C5 #C54240 #80C540 #40C2C5
square
#8540C5 #C54240 #80C540 #40C2C5
split-complementary
#8540C5 #C2C540 #40C542
monochromatic
#47206A #662F99 #8540C5 #A36FD3 #C19EE2
Accessibility & contrast
On white
5.94
#8540C5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.54
#8540C5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8540C5
5.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8540C5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8540C5 | 1.00 | 5.94 | 3.54 | 5.94 |
| #FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C9
Deuteranopia (green-blind)
#0A64C2
Tritanopia (blue-blind)
#795E7D
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8540c5; /* rgb */ color: rgb(133, 64, 197); /* oklch */ color: oklch(52.6% 0.199 304.1);
Tailwind
colors: {
custom: {
50: '#ad7ad7',
500: '#8540c5',
950: '#000000',
},
}SCSS
$custom: #8540c5; $custom-light: #ad7ad7; $custom-dark: #000000;
JSON
{
"hex": "#8540c5",
"rgb": {
"r": 133,
"g": 64,
"b": 197
},
"hsl": {
"h": 271.128,
"s": 53.414,
"l": 51.176
},
"oklch": {
"l": 0.52609,
"c": 0.19877,
"h": 304.1
},
"luminance": 0.12685
}Semantic roles & 50–950 ramp
primary
#8540C5
secondary
#AFCE93
accent
#DD4B91
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83