#8042BA#8042BA
#8042BA is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.5% C 0.183 H 304.5°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).
Color values
| HEX | #8042BA |
|---|---|
| RGB | rgb(128, 66, 186) |
| HSL | hsl(271, 48%, 49%) |
| HSV | hsv(271, 65%, 73%) |
| CMYK | cmyk(31.2%, 64.5%, 0%, 27.1%) |
| CIE-LAB | lab(41.27, 49.12, -53.19) |
| CIE-LCH | lch(41.27, 72.41, 312.72°) |
| OKLab | oklab(51.5% 0.1035 -0.1508) |
| OKLCH | oklch(51.5% 0.183 304.5) |
| XYZ | xyz(19.7112, 12.0309, 47.7286) |
| Luminance | 0.1203 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.93
Royal Purple
#7851A9
ΔE00 4.98
Purply
#983FB2
ΔE00 5.35
Blueviolet
#8A2BE2
ΔE00 6.10
Bluey Purple
#6241C7
ΔE00 6.10
Darkviolet
#9400D3
ΔE00 7.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8042BA #7CBA42
analogous
#4442BA #8042BA #BA42B8
triadic
#8042BA #BA8042 #42BA80
tetradic
#8042BA #BA4442 #7CBA42 #42B8BA
square
#8042BA #BA4442 #7CBA42 #42B8BA
split-complementary
#8042BA #B8BA42 #42BA44
monochromatic
#422260 #61328D #8042BA #9E6ECB #BC9BDB
Accessibility & contrast
On white
6.17
#8042BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.41
#8042BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8042BA
6.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8042BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8042BA | 1.00 | 6.17 | 3.41 | 6.17 |
| #FFFFFF | 6.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#2061B7
Tritanopia (blue-blind)
#755C78
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #8042ba; /* rgb */ color: rgb(128, 66, 186); /* oklch */ color: oklch(51.5% 0.183 304.5);
Tailwind
colors: {
custom: {
50: '#a97acf',
500: '#8042ba',
950: '#000000',
},
}SCSS
$custom: #8042ba; $custom-light: #a97acf; $custom-dark: #000000;
JSON
{
"hex": "#8042ba",
"rgb": {
"r": 128,
"g": 66,
"b": 186
},
"hsl": {
"h": 271,
"s": 47.619,
"l": 49.412
},
"oklch": {
"l": 0.515,
"c": 0.18293,
"h": 304.5
},
"luminance": 0.12031
}Semantic roles & 50–950 ramp
primary
#8042BA
secondary
#ABC890
accent
#D75192
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82