#8A42C6#8A42C6
#8A42C6 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.5% C 0.198 H 305.7°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).
Color values
| HEX | #8A42C6 |
|---|---|
| RGB | rgb(138, 66, 198) |
| HSL | hsl(273, 54%, 52%) |
| HSV | hsv(273, 67%, 78%) |
| CMYK | cmyk(30.3%, 66.7%, 0%, 22.4%) |
| CIE-LAB | lab(43.33, 54.14, -56.81) |
| CIE-LCH | lch(43.33, 78.47, 313.62°) |
| OKLab | oklab(53.51% 0.1159 -0.1611) |
| OKLCH | oklch(53.51% 0.198 305.7) |
| XYZ | xyz(22.6203, 13.3771, 54.8055) |
| Luminance | 0.1338 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.23
Blueviolet
#8A2BE2
ΔE00 4.88
Purply
#983FB2
ΔE00 4.88
Violet (survey)
#9A0EEA
ΔE00 6.35
Royal Purple
#7851A9
ΔE00 6.37
Darkviolet
#9400D3
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A42C6 #7EC642
analogous
#4842C6 #8A42C6 #C642C0
triadic
#8A42C6 #C68A42 #42C68A
tetradic
#8A42C6 #C64842 #7EC642 #42C0C6
square
#8A42C6 #C64842 #7EC642 #42C0C6
split-complementary
#8A42C6 #C0C642 #42C648
monochromatic
#4A216D #6A2F9C #8A42C6 #A771D4 #C4A0E2
Accessibility & contrast
On white
5.71
#8A42C6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.68
#8A42C6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A42C6
5.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A42C6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A42C6 | 1.00 | 5.71 | 3.68 | 5.71 |
| #FFFFFF | 5.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064CA
Deuteranopia (green-blind)
#1C67C3
Tritanopia (blue-blind)
#7F5F7F
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #8a42c6; /* rgb */ color: rgb(138, 66, 198); /* oklch */ color: oklch(53.5% 0.198 305.7);
Tailwind
colors: {
custom: {
50: '#b17bd8',
500: '#8a42c6',
950: '#000000',
},
}SCSS
$custom: #8a42c6; $custom-light: #b17bd8; $custom-dark: #000000;
JSON
{
"hex": "#8a42c6",
"rgb": {
"r": 138,
"g": 66,
"b": 198
},
"hsl": {
"h": 272.727,
"s": 53.659,
"l": 51.765
},
"oklch": {
"l": 0.53514,
"c": 0.19843,
"h": 305.7
},
"luminance": 0.13377
}Semantic roles & 50–950 ramp
primary
#8A42C6
secondary
#AFCF95
accent
#DD4B8D
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A15
muted
#807C83