#8342BF#8342BF
#8342BF is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.2% C 0.189 H 304.5°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).
Color values
| HEX | #8342BF |
|---|---|
| RGB | rgb(131, 66, 191) |
| HSL | hsl(271, 49%, 50%) |
| HSV | hsv(271, 65%, 75%) |
| CMYK | cmyk(31.4%, 65.4%, 0%, 25.1%) |
| CIE-LAB | lab(41.97, 50.99, -54.96) |
| CIE-LCH | lch(41.97, 74.97, 312.85°) |
| OKLab | oklab(52.2% 0.1072 -0.1559) |
| OKLCH | oklch(52.2% 0.189 304.5) |
| XYZ | xyz(20.7102, 12.4834, 50.5986) |
| Luminance | 0.1248 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.29
Purply
#983FB2
ΔE00 5.23
Royal Purple
#7851A9
ΔE00 5.46
Blueviolet
#8A2BE2
ΔE00 5.47
Bluey Purple
#6241C7
ΔE00 6.27
Darkviolet
#9400D3
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8342BF #7EBF42
analogous
#4442BF #8342BF #BF42BC
triadic
#8342BF #BF8342 #42BF83
tetradic
#8342BF #BF4442 #7EBF42 #42BCBF
square
#8342BF #BF4442 #7EBF42 #42BCBF
split-complementary
#8342BF #BCBF42 #42BF44
monochromatic
#452265 #643292 #8342BF #A170CE #BF9DDE
Accessibility & contrast
On white
6.01
#8342BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.50
#8342BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8342BF
6.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8342BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8342BF | 1.00 | 6.01 | 3.50 | 6.01 |
| #FFFFFF | 6.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#1C63BC
Tritanopia (blue-blind)
#785D7B
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #8342bf; /* rgb */ color: rgb(131, 66, 191); /* oklch */ color: oklch(52.2% 0.189 304.5);
Tailwind
colors: {
custom: {
50: '#ab7ad3',
500: '#8342bf',
950: '#000000',
},
}SCSS
$custom: #8342bf; $custom-light: #ab7ad3; $custom-dark: #000000;
JSON
{
"hex": "#8342bf",
"rgb": {
"r": 131,
"g": 66,
"b": 191
},
"hsl": {
"h": 271.2,
"s": 49.407,
"l": 50.392
},
"oklch": {
"l": 0.522,
"c": 0.18917,
"h": 304.5
},
"luminance": 0.12483
}Semantic roles & 50–950 ramp
primary
#8342BF
secondary
#ADCA93
accent
#D94F91
background
#FAF7FD
surface
#F5EEFA
border
#CFC9D3
text
#110914
muted
#807B83