#8542C8#8542C8
#8542C8 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.1% C 0.199 H 303.1°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).
Color values
| HEX | #8542C8 |
|---|---|
| RGB | rgb(133, 66, 200) |
| HSL | hsl(270, 55%, 52%) |
| HSV | hsv(270, 67%, 78%) |
| CMYK | cmyk(33.5%, 67%, 0%, 21.6%) |
| CIE-LAB | lab(42.84, 53.57, -58.78) |
| CIE-LCH | lch(42.84, 79.52, 312.34°) |
| OKLab | oklab(53.08% 0.1089 -0.167) |
| OKLCH | oklch(53.08% 0.199 303.1) |
| XYZ | xyz(22.0440, 13.0531, 55.9905) |
| Luminance | 0.1305 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.90
Blueviolet
#8A2BE2
ΔE00 4.49
Bluish Purple
#703BE7
ΔE00 5.77
Purply
#983FB2
ΔE00 5.85
Bluey Purple
#6241C7
ΔE00 6.21
Violet (survey)
#9A0EEA
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8542C8 #85C842
analogous
#4242C8 #8542C8 #C842C8
triadic
#8542C8 #C88542 #42C885
tetradic
#8542C8 #C84242 #85C842 #42C8C8
square
#8542C8 #C84242 #85C842 #42C8C8
split-complementary
#8542C8 #C8C842 #42C842
monochromatic
#48206F #662E9F #8542C8 #A471D6 #C2A1E4
Accessibility & contrast
On white
5.82
#8542C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.61
#8542C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8542C8
5.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8542C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8542C8 | 1.00 | 5.82 | 3.61 | 5.82 |
| #FFFFFF | 5.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#0565C5
Tritanopia (blue-blind)
#786080
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8542c8; /* rgb */ color: rgb(133, 66, 200); /* oklch */ color: oklch(53.1% 0.199 303.1);
Tailwind
colors: {
custom: {
50: '#ad7bda',
500: '#8542c8',
950: '#000000',
},
}SCSS
$custom: #8542c8; $custom-light: #ad7bda; $custom-dark: #000000;
JSON
{
"hex": "#8542c8",
"rgb": {
"r": 133,
"g": 66,
"b": 200
},
"hsl": {
"h": 270,
"s": 54.918,
"l": 52.157
},
"oklch": {
"l": 0.53076,
"c": 0.19943,
"h": 303.1
},
"luminance": 0.13053
}Semantic roles & 50–950 ramp
primary
#8542C8
secondary
#B3D096
accent
#DE4A94
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83