#8A42BE#8A42BE
#8A42BE is a mid, vivid violet. Relative luminance 0.130; OKLCH L 53.0% C 0.190 H 307.9°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).
Color values
| HEX | #8A42BE |
|---|---|
| RGB | rgb(138, 66, 190) |
| HSL | hsl(275, 49%, 50%) |
| HSV | hsv(275, 65%, 75%) |
| CMYK | cmyk(27.4%, 65.3%, 0%, 25.5%) |
| CIE-LAB | lab(42.79, 52.29, -53.01) |
| CIE-LCH | lch(42.79, 74.46, 314.61°) |
| OKLab | oklab(52.96% 0.1166 -0.1499) |
| OKLCH | oklch(52.96% 0.19 307.9) |
| XYZ | xyz(21.7218, 13.0177, 50.0736) |
| Luminance | 0.1302 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.48
Purply
#983FB2
ΔE00 3.91
Royal Purple
#7851A9
ΔE00 5.74
Blueviolet
#8A2BE2
ΔE00 5.84
Darkviolet
#9400D3
ΔE00 6.68
Violet (survey)
#9A0EEA
ΔE00 7.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A42BE #76BE42
analogous
#4C42BE #8A42BE #BE42B4
triadic
#8A42BE #BE8A42 #42BE8A
tetradic
#8A42BE #BE4C42 #76BE42 #42B4BE
square
#8A42BE #BE4C42 #76BE42 #42B4BE
split-complementary
#8A42BE #B4BE42 #42BE4C
monochromatic
#482263 #693291 #8A42BE #A670CE #C29DDD
Accessibility & contrast
On white
5.83
#8A42BE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.60
#8A42BE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A42BE
5.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A42BE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A42BE | 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)
#0062C2
Deuteranopia (green-blind)
#2A66BB
Tritanopia (blue-blind)
#825C7A
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8a42be; /* rgb */ color: rgb(138, 66, 190); /* oklch */ color: oklch(53.0% 0.190 307.9);
Tailwind
colors: {
custom: {
50: '#b07bd2',
500: '#8a42be',
950: '#000000',
},
}SCSS
$custom: #8a42be; $custom-light: #b07bd2; $custom-dark: #000000;
JSON
{
"hex": "#8a42be",
"rgb": {
"r": 138,
"g": 66,
"b": 190
},
"hsl": {
"h": 274.839,
"s": 48.819,
"l": 50.196
},
"oklch": {
"l": 0.52958,
"c": 0.18992,
"h": 307.9
},
"luminance": 0.13017
}Semantic roles & 50–950 ramp
primary
#8A42BE
secondary
#A9CA92
accent
#D84F89
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83