#8A42CB#8A42CB
#8A42CB is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 53.9% C 0.204 H 304.5°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).
Color values
| HEX | #8A42CB |
|---|---|
| RGB | rgb(138, 66, 203) |
| HSL | hsl(272, 57%, 53%) |
| HSV | hsv(272, 67%, 80%) |
| CMYK | cmyk(32%, 67.5%, 0%, 20.4%) |
| CIE-LAB | lab(43.67, 55.31, -59.15) |
| CIE-LCH | lch(43.67, 80.98, 313.08°) |
| OKLab | oklab(53.87% 0.1153 -0.168) |
| OKLCH | oklch(53.87% 0.204 304.5) |
| XYZ | xyz(23.2065, 13.6116, 57.8931) |
| Luminance | 0.1361 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.30
Blueviolet
#8A2BE2
ΔE00 4.38
Purply
#983FB2
ΔE00 5.51
Violet (survey)
#9A0EEA
ΔE00 5.95
Bluish Purple
#703BE7
ΔE00 6.12
Purpley
#8756E4
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A42CB #83CB42
analogous
#4642CB #8A42CB #CB42C7
triadic
#8A42CB #CB8A42 #42CB8A
tetradic
#8A42CB #CB4642 #83CB42 #42C7CB
square
#8A42CB #CB4642 #83CB42 #42C7CB
split-complementary
#8A42CB #C7CB42 #42CB46
monochromatic
#4B2073 #6B2DA3 #8A42CB #A872D8 #C5A2E5
Accessibility & contrast
On white
5.64
#8A42CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.72
#8A42CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A42CB
5.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A42CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A42CB | 1.00 | 5.64 | 3.72 | 5.64 |
| #FFFFFF | 5.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0D67C8
Tritanopia (blue-blind)
#7E6181
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #8a42cb; /* rgb */ color: rgb(138, 66, 203); /* oklch */ color: oklch(53.9% 0.204 304.5);
Tailwind
colors: {
custom: {
50: '#b17bdc',
500: '#8a42cb',
950: '#000000',
},
}SCSS
$custom: #8a42cb; $custom-light: #b17bdc; $custom-dark: #000000;
JSON
{
"hex": "#8a42cb",
"rgb": {
"r": 138,
"g": 66,
"b": 203
},
"hsl": {
"h": 271.533,
"s": 56.846,
"l": 52.745
},
"oklch": {
"l": 0.53871,
"c": 0.20374,
"h": 304.5
},
"luminance": 0.13611
}Semantic roles & 50–950 ramp
primary
#8A42CB
secondary
#B3D297
accent
#E04890
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83