#8A42B5#8A42B5
#8A42B5 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.4% C 0.180 H 310.5°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).
Color values
| HEX | #8A42B5 |
|---|---|
| RGB | rgb(138, 66, 181) |
| HSL | hsl(278, 47%, 48%) |
| HSV | hsv(278, 64%, 71%) |
| CMYK | cmyk(23.8%, 63.5%, 0%, 29%) |
| CIE-LAB | lab(42.21, 50.25, -48.67) |
| CIE-LCH | lch(42.21, 69.96, 315.92°) |
| OKLab | oklab(52.36% 0.1171 -0.1372) |
| OKLCH | oklch(52.36% 0.18 310.5) |
| XYZ | xyz(20.7684, 12.6363, 45.0521) |
| Luminance | 0.1264 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.01
Darkorchid
#9932CC
ΔE00 4.27
Royal Purple
#7851A9
ΔE00 5.30
Medium Purple
#9E43A2
ΔE00 6.45
Barney
#AC1DB8
ΔE00 6.79
Blueviolet
#8A2BE2
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A42B5 #6DB542
analogous
#5042B5 #8A42B5 #B542A6
triadic
#8A42B5 #B58A42 #42B58A
tetradic
#8A42B5 #B55042 #6DB542 #42A6B5
square
#8A42B5 #B55042 #6DB542 #42A6B5
split-complementary
#8A42B5 #A6B542 #42B550
monochromatic
#46215B #683288 #8A42B5 #A66BC9 #C198D9
Accessibility & contrast
On white
5.95
#8A42B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.53
#8A42B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A42B5
5.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A42B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A42B5 | 1.00 | 5.95 | 3.53 | 5.95 |
| #FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0560B9
Deuteranopia (green-blind)
#3465B2
Tritanopia (blue-blind)
#845975
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8a42b5; /* rgb */ color: rgb(138, 66, 181); /* oklch */ color: oklch(52.4% 0.180 310.5);
Tailwind
colors: {
custom: {
50: '#b07bcc',
500: '#8a42b5',
950: '#000000',
},
}SCSS
$custom: #8a42b5; $custom-light: #b07bcc; $custom-dark: #000000;
JSON
{
"hex": "#8a42b5",
"rgb": {
"r": 138,
"g": 66,
"b": 181
},
"hsl": {
"h": 277.565,
"s": 46.559,
"l": 48.431
},
"oklch": {
"l": 0.52355,
"c": 0.18036,
"h": 310.5
},
"luminance": 0.12636
}Semantic roles & 50–950 ramp
primary
#8A42B5
secondary
#A2C58E
accent
#D65283
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82