#A78BFA color
The swatch above shows #A78BFA with its hex code written on it in white and in black, so you can see which of the two is legible before reading the measured ratios below.
#A78BFA is a light, vivid violet, closest to the CSS named color mediumpurple (#9370DB).
It is also a Tailwind CSS default: violet-400. That means you can write bg-violet-400 or text-violet-400 directly, with no arbitrary-value brackets and no entry in your theme config.
Color values
| HEX | #A78BFA |
| RGB | rgb(167, 139, 250) |
| HSL | hsl(255, 92%, 76%) |
| CMYK | cmyk(33%, 44%, 0%, 2%) |
| Decimal | 10980346 |
| CSS | color: #A78BFA; |
| Android | 0xFFA78BFA |
| Swift | UIColor(red: 0.655, green: 0.545, blue: 0.980, alpha: 1) |
Accessibility and contrast
| White text on #A78BFA | 2.72:1 — AA fail · AA large fail · AAA fail |
| Black text on #A78BFA | 7.72:1 — AA pass · AA large pass · AAA pass |
| Recommended text color | black |
WCAG 2.1 asks for at least 4.5:1 for body text and 3:1 for large text (18 pt, or 14 pt bold).
Tints and shades of #A78BFA
Each swatch keeps the hue and saturation of #A78BFA and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #A78BFA
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #A78BFA in code
/* CSS */
.element { color: #A78BFA; background-color: #A78BFA; }
.element { color: rgb(167 139 250); }
.element { color: hsl(255 92% 76%); }
/* Tailwind */
<div class="bg-violet-400 text-black">
/* SCSS variable */
$brand: #A78BFA;
Frequently asked questions
What color is #A78BFA?
#A78BFA is a light, vivid violet. Its hue sits at 255° on the color wheel, with 92% saturation and 76% lightness.
What is #A78BFA in RGB?
#A78BFA converts to rgb(167, 139, 250) — 167 red, 139 green and 250 blue.
What is #A78BFA in CMYK?
Approximately cmyk(33%, 44%, 0%, 2%). Print output depends on the ICC profile of the press and paper, so treat this as a starting point rather than an exact match.
Should text on #A78BFA be white or black?
Black gives the better contrast ratio (7.72:1 versus 2.72:1).
What is the complementary color of #A78BFA?
#DEFA89 — the hue directly opposite #A78BFA on the color wheel.