#8A42C0#8A42C0
#8A42C0 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.1% C 0.192 H 307.3°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).
Color values
| HEX | #8A42C0 |
|---|---|
| RGB | rgb(138, 66, 192) |
| HSL | hsl(274, 50%, 51%) |
| HSV | hsv(274, 66%, 75%) |
| CMYK | cmyk(28.1%, 65.6%, 0%, 24.7%) |
| CIE-LAB | lab(42.92, 52.75, -53.97) |
| CIE-LCH | lch(42.92, 75.47, 314.35°) |
| OKLab | oklab(53.1% 0.1164 -0.1527) |
| OKLCH | oklch(53.1% 0.192 307.3) |
| XYZ | xyz(21.9419, 13.1057, 51.2327) |
| Luminance | 0.1310 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.38
Purply
#983FB2
ΔE00 4.14
Blueviolet
#8A2BE2
ΔE00 5.58
Royal Purple
#7851A9
ΔE00 5.88
Darkviolet
#9400D3
ΔE00 6.59
Violet (survey)
#9A0EEA
ΔE00 6.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A42C0 #78C042
analogous
#4B42C0 #8A42C0 #C042B7
triadic
#8A42C0 #C08A42 #42C08A
tetradic
#8A42C0 #C04B42 #78C042 #42B7C0
square
#8A42C0 #C04B42 #78C042 #42B7C0
split-complementary
#8A42C0 #B7C042 #42C04B
monochromatic
#492266 #693194 #8A42C0 #A670CF #C39EDF
Accessibility & contrast
On white
5.80
#8A42C0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.62
#8A42C0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A42C0
5.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A42C0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A42C0 | 1.00 | 5.80 | 3.62 | 5.80 |
| #FFFFFF | 5.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C4
Deuteranopia (green-blind)
#2766BD
Tritanopia (blue-blind)
#815D7B
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8a42c0; /* rgb */ color: rgb(138, 66, 192); /* oklch */ color: oklch(53.1% 0.192 307.3);
Tailwind
colors: {
custom: {
50: '#b07bd4',
500: '#8a42c0',
950: '#000000',
},
}SCSS
$custom: #8a42c0; $custom-light: #b07bd4; $custom-dark: #000000;
JSON
{
"hex": "#8a42c0",
"rgb": {
"r": 138,
"g": 66,
"b": 192
},
"hsl": {
"h": 274.286,
"s": 50,
"l": 50.588
},
"oklch": {
"l": 0.53096,
"c": 0.19205,
"h": 307.3
},
"luminance": 0.13105
}Semantic roles & 50–950 ramp
primary
#8A42C0
secondary
#ABCB93
accent
#DA4E8A
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83