#8A42C1#8A42C1
#8A42C1 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.2% C 0.193 H 307.0°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).
Color values
| HEX | #8A42C1 |
|---|---|
| RGB | rgb(138, 66, 193) |
| HSL | hsl(274, 51%, 51%) |
| HSV | hsv(274, 66%, 76%) |
| CMYK | cmyk(28.5%, 65.8%, 0%, 24.3%) |
| CIE-LAB | lab(42.99, 52.98, -54.44) |
| CIE-LCH | lch(42.99, 75.97, 314.22°) |
| OKLab | oklab(53.16% 0.1163 -0.1541) |
| OKLCH | oklch(53.16% 0.193 307) |
| XYZ | xyz(22.0531, 13.1502, 51.8182) |
| Luminance | 0.1315 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.33
Purply
#983FB2
ΔE00 4.26
Blueviolet
#8A2BE2
ΔE00 5.46
Royal Purple
#7851A9
ΔE00 5.96
Darkviolet
#9400D3
ΔE00 6.55
Violet (survey)
#9A0EEA
ΔE00 6.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A42C1 #79C142
analogous
#4A42C1 #8A42C1 #C142B8
triadic
#8A42C1 #C18A42 #42C18A
tetradic
#8A42C1 #C14A42 #79C142 #42B8C1
square
#8A42C1 #C14A42 #79C142 #42B8C1
split-complementary
#8A42C1 #B8C142 #42C14A
monochromatic
#492267 #6A3195 #8A42C1 #A770D0 #C39EDF
Accessibility & contrast
On white
5.79
#8A42C1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.63
#8A42C1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A42C1
5.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A42C1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A42C1 | 1.00 | 5.79 | 3.63 | 5.79 |
| #FFFFFF | 5.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C5
Deuteranopia (green-blind)
#2566BE
Tritanopia (blue-blind)
#815D7C
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #8a42c1; /* rgb */ color: rgb(138, 66, 193); /* oklch */ color: oklch(53.2% 0.193 307.0);
Tailwind
colors: {
custom: {
50: '#b07bd4',
500: '#8a42c1',
950: '#000000',
},
}SCSS
$custom: #8a42c1; $custom-light: #b07bd4; $custom-dark: #000000;
JSON
{
"hex": "#8a42c1",
"rgb": {
"r": 138,
"g": 66,
"b": 193
},
"hsl": {
"h": 274.016,
"s": 50.598,
"l": 50.784
},
"oklch": {
"l": 0.53165,
"c": 0.19312,
"h": 307
},
"luminance": 0.1315
}Semantic roles & 50–950 ramp
primary
#8A42C1
secondary
#ACCC93
accent
#DA4E8B
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83