#8A42BB#8A42BB
#8A42BB is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.8% C 0.187 H 308.7°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).
Color values
| HEX | #8A42BB |
|---|---|
| RGB | rgb(138, 66, 187) |
| HSL | hsl(276, 48%, 50%) |
| HSV | hsv(276, 65%, 73%) |
| CMYK | cmyk(26.2%, 64.7%, 0%, 26.7%) |
| CIE-LAB | lab(42.59, 51.61, -51.58) |
| CIE-LCH | lch(42.59, 72.96, 315.02°) |
| OKLab | oklab(52.75% 0.1168 -0.1457) |
| OKLCH | oklch(52.75% 0.187 308.7) |
| XYZ | xyz(21.3973, 12.8879, 48.3645) |
| Luminance | 0.1289 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.57
Darkorchid
#9932CC
ΔE00 3.69
Royal Purple
#7851A9
ΔE00 5.56
Blueviolet
#8A2BE2
ΔE00 6.24
Darkviolet
#9400D3
ΔE00 6.85
Barney
#AC1DB8
ΔE00 7.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A42BB #73BB42
analogous
#4D42BB #8A42BB #BB42B0
triadic
#8A42BB #BB8A42 #42BB8A
tetradic
#8A42BB #BB4D42 #73BB42 #42B0BB
square
#8A42BB #BB4D42 #73BB42 #42B0BB
split-complementary
#8A42BB #B0BB42 #42BB4D
monochromatic
#472261 #69328E #8A42BB #A66ECC #C29CDC
Accessibility & contrast
On white
5.87
#8A42BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.58
#8A42BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A42BB
5.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A42BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A42BB | 1.00 | 5.87 | 3.58 | 5.87 |
| #FFFFFF | 5.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#2E65B8
Tritanopia (blue-blind)
#835B79
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8a42bb; /* rgb */ color: rgb(138, 66, 187); /* oklch */ color: oklch(52.8% 0.187 308.7);
Tailwind
colors: {
custom: {
50: '#b07bd0',
500: '#8a42bb',
950: '#000000',
},
}SCSS
$custom: #8a42bb; $custom-light: #b07bd0; $custom-dark: #000000;
JSON
{
"hex": "#8a42bb",
"rgb": {
"r": 138,
"g": 66,
"b": 187
},
"hsl": {
"h": 275.702,
"s": 47.826,
"l": 49.608
},
"oklch": {
"l": 0.52754,
"c": 0.18674,
"h": 308.7
},
"luminance": 0.12888
}Semantic roles & 50–950 ramp
primary
#8A42BB
secondary
#A7C891
accent
#D75087
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82