#8A42C7#8A42C7
#8A42C7 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.6% C 0.199 H 305.5°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).
Color values
| HEX | #8A42C7 |
|---|---|
| RGB | rgb(138, 66, 199) |
| HSL | hsl(272, 54%, 52%) |
| HSV | hsv(272, 67%, 78%) |
| CMYK | cmyk(30.7%, 66.8%, 0%, 22%) |
| CIE-LAB | lab(43.39, 54.37, -57.28) |
| CIE-LCH | lch(43.39, 78.97, 313.51°) |
| OKLab | oklab(53.59% 0.1158 -0.1625) |
| OKLCH | oklch(53.59% 0.199 305.5) |
| XYZ | xyz(22.7360, 13.4234, 55.4150) |
| Luminance | 0.1342 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.23
Blueviolet
#8A2BE2
ΔE00 4.77
Purply
#983FB2
ΔE00 5.01
Violet (survey)
#9A0EEA
ΔE00 6.27
Darkviolet
#9400D3
ΔE00 6.40
Royal Purple
#7851A9
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A42C7 #7FC742
analogous
#4842C7 #8A42C7 #C742C2
triadic
#8A42C7 #C78A42 #42C78A
tetradic
#8A42C7 #C74842 #7FC742 #42C2C7
square
#8A42C7 #C74842 #7FC742 #42C2C7
split-complementary
#8A42C7 #C2C742 #42C748
monochromatic
#4B216E #6A2F9D #8A42C7 #A771D5 #C4A0E3
Accessibility & contrast
On white
5.70
#8A42C7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.68
#8A42C7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A42C7
5.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A42C7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A42C7 | 1.00 | 5.70 | 3.68 | 5.70 |
| #FFFFFF | 5.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064CB
Deuteranopia (green-blind)
#1A67C4
Tritanopia (blue-blind)
#7F5F7F
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #8a42c7; /* rgb */ color: rgb(138, 66, 199); /* oklch */ color: oklch(53.6% 0.199 305.5);
Tailwind
colors: {
custom: {
50: '#b17bd9',
500: '#8a42c7',
950: '#000000',
},
}SCSS
$custom: #8a42c7; $custom-light: #b17bd9; $custom-dark: #000000;
JSON
{
"hex": "#8a42c7",
"rgb": {
"r": 138,
"g": 66,
"b": 199
},
"hsl": {
"h": 272.481,
"s": 54.286,
"l": 51.961
},
"oklch": {
"l": 0.53585,
"c": 0.19949,
"h": 305.5
},
"luminance": 0.13423
}Semantic roles & 50–950 ramp
primary
#8A42C7
secondary
#B0D095
accent
#DE4A8E
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83