#8540C0#8540C0
#8540C0 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.3% C 0.193 H 305.4°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).
Color values
| HEX | #8540C0 |
|---|---|
| RGB | rgb(133, 64, 192) |
| HSL | hsl(272, 50%, 50%) |
| HSV | hsv(272, 67%, 75%) |
| CMYK | cmyk(30.7%, 66.7%, 0%, 24.7%) |
| CIE-LAB | lab(41.94, 52.63, -55.59) |
| CIE-LCH | lch(41.94, 76.55, 313.43°) |
| OKLab | oklab(52.25% 0.112 -0.1577) |
| OKLCH | oklch(52.25% 0.193 305.4) |
| XYZ | xyz(21.0186, 12.4593, 51.1565) |
| Luminance | 0.1246 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.81
Purply
#983FB2
ΔE00 5.00
Blueviolet
#8A2BE2
ΔE00 5.17
Royal Purple
#7851A9
ΔE00 5.89
Darkviolet
#9400D3
ΔE00 6.24
Bluey Purple
#6241C7
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8540C0 #7BC040
analogous
#4540C0 #8540C0 #C040BB
triadic
#8540C0 #C08540 #40C085
tetradic
#8540C0 #C04540 #7BC040 #40BBC0
square
#8540C0 #C04540 #7BC040 #40BBC0
split-complementary
#8540C0 #BBC040 #40C045
monochromatic
#452164 #653092 #8540C0 #A26ECF #C09CDE
Accessibility & contrast
On white
6.01
#8540C0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.49
#8540C0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8540C0
6.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8540C0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8540C0 | 1.00 | 6.01 | 3.49 | 6.01 |
| #FFFFFF | 6.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C4
Deuteranopia (green-blind)
#1A63BD
Tritanopia (blue-blind)
#7A5C7B
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #8540c0; /* rgb */ color: rgb(133, 64, 192); /* oklch */ color: oklch(52.3% 0.193 305.4);
Tailwind
colors: {
custom: {
50: '#ad79d4',
500: '#8540c0',
950: '#000000',
},
}SCSS
$custom: #8540c0; $custom-light: #ad79d4; $custom-dark: #000000;
JSON
{
"hex": "#8540c0",
"rgb": {
"r": 133,
"g": 64,
"b": 192
},
"hsl": {
"h": 272.344,
"s": 50.394,
"l": 50.196
},
"oklch": {
"l": 0.5225,
"c": 0.1934,
"h": 305.4
},
"luminance": 0.12459
}Semantic roles & 50–950 ramp
primary
#8540C0
secondary
#ACCB91
accent
#DA4E8E
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83