#8542C7#8542C7
#8542C7 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 53.0% C 0.198 H 303.4°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).
Color values
| HEX | #8542C7 |
|---|---|
| RGB | rgb(133, 66, 199) |
| HSL | hsl(270, 54%, 52%) |
| HSV | hsv(270, 67%, 78%) |
| CMYK | cmyk(33.2%, 66.8%, 0%, 22%) |
| CIE-LAB | lab(42.77, 53.33, -58.31) |
| CIE-LCH | lch(42.77, 79.02, 312.44°) |
| OKLab | oklab(53% 0.1091 -0.1657) |
| OKLCH | oklch(53% 0.198 303.4) |
| XYZ | xyz(21.9275, 13.0065, 55.3771) |
| Luminance | 0.1301 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.89
Blueviolet
#8A2BE2
ΔE00 4.59
Purply
#983FB2
ΔE00 5.73
Bluish Purple
#703BE7
ΔE00 5.89
Bluey Purple
#6241C7
ΔE00 6.24
Royal Purple
#7851A9
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8542C7 #84C742
analogous
#4342C7 #8542C7 #C742C6
triadic
#8542C7 #C78542 #42C785
tetradic
#8542C7 #C74342 #84C742 #42C6C7
square
#8542C7 #C74342 #84C742 #42C6C7
split-complementary
#8542C7 #C6C742 #42C743
monochromatic
#48216E #662F9D #8542C7 #A371D5 #C2A0E3
Accessibility & contrast
On white
5.83
#8542C7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.60
#8542C7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8542C7
5.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8542C7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8542C7 | 1.00 | 5.83 | 3.60 | 5.83 |
| #FFFFFF | 5.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064CB
Deuteranopia (green-blind)
#0965C4
Tritanopia (blue-blind)
#78607F
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8542c7; /* rgb */ color: rgb(133, 66, 199); /* oklch */ color: oklch(53.0% 0.198 303.4);
Tailwind
colors: {
custom: {
50: '#ad7bd9',
500: '#8542c7',
950: '#000000',
},
}SCSS
$custom: #8542c7; $custom-light: #ad7bd9; $custom-dark: #000000;
JSON
{
"hex": "#8542c7",
"rgb": {
"r": 133,
"g": 66,
"b": 199
},
"hsl": {
"h": 270.226,
"s": 54.286,
"l": 51.961
},
"oklch": {
"l": 0.53004,
"c": 0.19835,
"h": 303.4
},
"luminance": 0.13006
}Semantic roles & 50–950 ramp
primary
#8542C7
secondary
#B2D095
accent
#DE4A93
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83