#8A42C3#8A42C3
#8A42C3 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.3% C 0.195 H 306.5°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).
Color values
| HEX | #8A42C3 |
|---|---|
| RGB | rgb(138, 66, 195) |
| HSL | hsl(273, 52%, 51%) |
| HSV | hsv(273, 66%, 76%) |
| CMYK | cmyk(29.2%, 66.2%, 0%, 23.5%) |
| CIE-LAB | lab(43.12, 53.44, -55.39) |
| CIE-LCH | lch(43.12, 76.97, 313.97°) |
| OKLab | oklab(53.3% 0.1162 -0.1569) |
| OKLCH | oklch(53.3% 0.195 306.5) |
| XYZ | xyz(22.2777, 13.2401, 53.0012) |
| Luminance | 0.1324 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.27
Purply
#983FB2
ΔE00 4.51
Blueviolet
#8A2BE2
ΔE00 5.22
Royal Purple
#7851A9
ΔE00 6.11
Darkviolet
#9400D3
ΔE00 6.48
Violet (survey)
#9A0EEA
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A42C3 #7BC342
analogous
#4942C3 #8A42C3 #C342BB
triadic
#8A42C3 #C38A42 #42C38A
tetradic
#8A42C3 #C34942 #7BC342 #42BBC3
square
#8A42C3 #C34942 #7BC342 #42BBC3
split-complementary
#8A42C3 #BBC342 #42C349
monochromatic
#492169 #6A3098 #8A42C3 #A770D2 #C49FE0
Accessibility & contrast
On white
5.76
#8A42C3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.65
#8A42C3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A42C3
5.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A42C3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A42C3 | 1.00 | 5.76 | 3.65 | 5.76 |
| #FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C7
Deuteranopia (green-blind)
#2266C0
Tritanopia (blue-blind)
#805E7D
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #8a42c3; /* rgb */ color: rgb(138, 66, 195); /* oklch */ color: oklch(53.3% 0.195 306.5);
Tailwind
colors: {
custom: {
50: '#b07bd6',
500: '#8a42c3',
950: '#000000',
},
}SCSS
$custom: #8a42c3; $custom-light: #b07bd6; $custom-dark: #000000;
JSON
{
"hex": "#8a42c3",
"rgb": {
"r": 138,
"g": 66,
"b": 195
},
"hsl": {
"h": 273.488,
"s": 51.807,
"l": 51.176
},
"oklch": {
"l": 0.53304,
"c": 0.19524,
"h": 306.5
},
"luminance": 0.1324
}Semantic roles & 50–950 ramp
primary
#8A42C3
secondary
#ADCD94
accent
#DB4D8C
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83