#8A42B0#8A42B0
#8A42B0 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.0% C 0.175 H 312.0°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).
Color values
| HEX | #8A42B0 |
|---|---|
| RGB | rgb(138, 66, 176) |
| HSL | hsl(279, 45%, 47%) |
| HSV | hsv(279, 63%, 69%) |
| CMYK | cmyk(21.6%, 62.5%, 0%, 31%) |
| CIE-LAB | lab(41.90, 49.14, -46.22) |
| CIE-LCH | lch(41.90, 67.46, 316.75°) |
| OKLab | oklab(52.03% 0.1172 -0.13) |
| OKLCH | oklch(52.03% 0.175 312) |
| XYZ | xyz(20.2645, 12.4348, 42.3985) |
| Luminance | 0.1243 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 2.72
Darkorchid
#9932CC
ΔE00 4.88
Royal Purple
#7851A9
ΔE00 5.23
Medium Purple
#9E43A2
ΔE00 5.83
Barney
#AC1DB8
ΔE00 6.68
Ugly Purple
#A442A0
ΔE00 7.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A42B0 #68B042
analogous
#5342B0 #8A42B0 #B0429F
triadic
#8A42B0 #B08A42 #42B08A
tetradic
#8A42B0 #B05342 #68B042 #429FB0
square
#8A42B0 #B05342 #68B042 #429FB0
split-complementary
#8A42B0 #9FB042 #42B053
monochromatic
#442157 #673183 #8A42B0 #A669C7 #C095D7
Accessibility & contrast
On white
6.02
#8A42B0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.49
#8A42B0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A42B0
6.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A42B0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A42B0 | 1.00 | 6.02 | 3.49 | 6.02 |
| #FFFFFF | 6.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#145FB3
Deuteranopia (green-blind)
#3964AD
Tritanopia (blue-blind)
#865773
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #8a42b0; /* rgb */ color: rgb(138, 66, 176); /* oklch */ color: oklch(52.0% 0.175 312.0);
Tailwind
colors: {
custom: {
50: '#af7bc8',
500: '#8a42b0',
950: '#000000',
},
}SCSS
$custom: #8a42b0; $custom-light: #af7bc8; $custom-dark: #000000;
JSON
{
"hex": "#8a42b0",
"rgb": {
"r": 138,
"g": 66,
"b": 176
},
"hsl": {
"h": 279.273,
"s": 45.455,
"l": 47.451
},
"oklch": {
"l": 0.52029,
"c": 0.17507,
"h": 312
},
"luminance": 0.12434
}Semantic roles & 50–950 ramp
primary
#8A42B0
secondary
#9EC38B
accent
#D55380
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82