#8A42BA#8A42BA
#8A42BA is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.7% C 0.186 H 309.0°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).
Color values
| HEX | #8A42BA |
|---|---|
| RGB | rgb(138, 66, 186) |
| HSL | hsl(276, 48%, 49%) |
| HSV | hsv(276, 65%, 73%) |
| CMYK | cmyk(25.8%, 64.5%, 0%, 27.1%) |
| CIE-LAB | lab(42.53, 51.38, -51.09) |
| CIE-LCH | lch(42.53, 72.46, 315.16°) |
| OKLab | oklab(52.69% 0.1168 -0.1443) |
| OKLCH | oklch(52.69% 0.186 309) |
| XYZ | xyz(21.2906, 12.8452, 47.8026) |
| Luminance | 0.1285 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.47
Darkorchid
#9932CC
ΔE00 3.78
Royal Purple
#7851A9
ΔE00 5.50
Blueviolet
#8A2BE2
ΔE00 6.38
Darkviolet
#9400D3
ΔE00 6.91
Barney
#AC1DB8
ΔE00 6.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A42BA #72BA42
analogous
#4E42BA #8A42BA #BA42AE
triadic
#8A42BA #BA8A42 #42BA8A
tetradic
#8A42BA #BA4E42 #72BA42 #42AEBA
square
#8A42BA #BA4E42 #72BA42 #42AEBA
split-complementary
#8A42BA #AEBA42 #42BA4E
monochromatic
#472260 #68328D #8A42BA #A66ECB #C29BDB
Accessibility & contrast
On white
5.88
#8A42BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.57
#8A42BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A42BA
5.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A42BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A42BA | 1.00 | 5.88 | 3.57 | 5.88 |
| #FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#2F65B7
Tritanopia (blue-blind)
#835A78
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8a42ba; /* rgb */ color: rgb(138, 66, 186); /* oklch */ color: oklch(52.7% 0.186 309.0);
Tailwind
colors: {
custom: {
50: '#b07bcf',
500: '#8a42ba',
950: '#000000',
},
}SCSS
$custom: #8a42ba; $custom-light: #b07bcf; $custom-dark: #000000;
JSON
{
"hex": "#8a42ba",
"rgb": {
"r": 138,
"g": 66,
"b": 186
},
"hsl": {
"h": 276,
"s": 47.619,
"l": 49.412
},
"oklch": {
"l": 0.52687,
"c": 0.18567,
"h": 309
},
"luminance": 0.12845
}Semantic roles & 50–950 ramp
primary
#8A42BA
secondary
#A6C890
accent
#D75186
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82