#8A42B1#8A42B1
#8A42B1 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.1% C 0.176 H 311.7°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).
Color values
| HEX | #8A42B1 |
|---|---|
| RGB | rgb(138, 66, 177) |
| HSL | hsl(279, 46%, 48%) |
| HSV | hsv(279, 63%, 69%) |
| CMYK | cmyk(22%, 62.7%, 0%, 30.6%) |
| CIE-LAB | lab(41.96, 49.36, -46.71) |
| CIE-LCH | lch(41.96, 67.96, 316.58°) |
| OKLab | oklab(52.09% 0.1172 -0.1315) |
| OKLCH | oklch(52.09% 0.176 311.7) |
| XYZ | xyz(20.3638, 12.4745, 42.9215) |
| Luminance | 0.1247 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 2.76
Darkorchid
#9932CC
ΔE00 4.75
Royal Purple
#7851A9
ΔE00 5.23
Medium Purple
#9E43A2
ΔE00 5.95
Barney
#AC1DB8
ΔE00 6.69
Ugly Purple
#A442A0
ΔE00 7.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A42B1 #69B142
analogous
#5342B1 #8A42B1 #B142A0
triadic
#8A42B1 #B18A42 #42B18A
tetradic
#8A42B1 #B15342 #69B142 #42A0B1
square
#8A42B1 #B15342 #69B142 #42A0B1
split-complementary
#8A42B1 #A0B142 #42B153
monochromatic
#442158 #673184 #8A42B1 #A669C7 #C196D8
Accessibility & contrast
On white
6.01
#8A42B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.49
#8A42B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A42B1
6.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A42B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A42B1 | 1.00 | 6.01 | 3.49 | 6.01 |
| #FFFFFF | 6.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#125FB4
Deuteranopia (green-blind)
#3864AE
Tritanopia (blue-blind)
#855773
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #8a42b1; /* rgb */ color: rgb(138, 66, 177); /* oklch */ color: oklch(52.1% 0.176 311.7);
Tailwind
colors: {
custom: {
50: '#af7bc9',
500: '#8a42b1',
950: '#000000',
},
}SCSS
$custom: #8a42b1; $custom-light: #af7bc9; $custom-dark: #000000;
JSON
{
"hex": "#8a42b1",
"rgb": {
"r": 138,
"g": 66,
"b": 177
},
"hsl": {
"h": 278.919,
"s": 45.679,
"l": 47.647
},
"oklch": {
"l": 0.52094,
"c": 0.17612,
"h": 311.7
},
"luminance": 0.12474
}Semantic roles & 50–950 ramp
primary
#8A42B1
secondary
#9FC38B
accent
#D55280
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82