#8B46CC#8B46CC
#8B46CC is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.6% C 0.200 H 304.1°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).
Color values
| HEX | #8B46CC |
|---|---|
| RGB | rgb(139, 70, 204) |
| HSL | hsl(271, 57%, 54%) |
| HSV | hsv(271, 66%, 80%) |
| CMYK | cmyk(31.9%, 65.7%, 0%, 20%) |
| CIE-LAB | lab(44.56, 53.83, -58.28) |
| CIE-LCH | lch(44.56, 79.33, 312.72°) |
| OKLab | oklab(54.56% 0.1122 -0.1654) |
| OKLCH | oklch(54.56% 0.2 304.1) |
| XYZ | xyz(23.7342, 14.2290, 58.6111) |
| Luminance | 0.1423 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.81
Blueviolet
#8A2BE2
ΔE00 5.00
Purpley
#8756E4
ΔE00 5.60
Purply
#983FB2
ΔE00 5.65
Bluish Purple
#703BE7
ΔE00 6.45
Violet (survey)
#9A0EEA
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8B46CC #87CC46
analogous
#4846CC #8B46CC #CC46CA
triadic
#8B46CC #CC8B46 #46CC8B
tetradic
#8B46CC #CC4846 #87CC46 #46CACC
square
#8B46CC #CC4846 #87CC46 #46CACC
split-complementary
#8B46CC #CACC46 #46CC48
monochromatic
#4D2177 #6C2EA7 #8B46CC #A976D9 #C7A6E6
Accessibility & contrast
On white
5.46
#8B46CC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.85
#8B46CC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8B46CC
5.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8B46CC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8B46CC | 1.00 | 5.46 | 3.85 | 5.46 |
| #FFFFFF | 5.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#1969C9
Tritanopia (blue-blind)
#7F6383
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #8b46cc; /* rgb */ color: rgb(139, 70, 204); /* oklch */ color: oklch(54.6% 0.200 304.1);
Tailwind
colors: {
custom: {
50: '#b27edc',
500: '#8b46cc',
950: '#000000',
},
}SCSS
$custom: #8b46cc; $custom-light: #b27edc; $custom-dark: #000000;
JSON
{
"hex": "#8b46cc",
"rgb": {
"r": 139,
"g": 70,
"b": 204
},
"hsl": {
"h": 270.896,
"s": 56.78,
"l": 53.725
},
"oklch": {
"l": 0.54557,
"c": 0.19986,
"h": 304.1
},
"luminance": 0.14229
}Semantic roles & 50–950 ramp
primary
#8B46CC
secondary
#B6D49A
accent
#E04892
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83