#D8B4FE color
The swatch above shows #D8B4FE 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.
#D8B4FE is a very light, vivid violet, closest to the CSS named color thistle (#D8BFD8).
It is also a Tailwind CSS default: purple-300. That means you can write bg-purple-300 or text-purple-300 directly, with no arbitrary-value brackets and no entry in your theme config.
Color values
| HEX | #D8B4FE |
| RGB | rgb(216, 180, 254) |
| HSL | hsl(269, 97%, 85%) |
| CMYK | cmyk(15%, 29%, 0%, 0%) |
| Decimal | 14202110 |
| CSS | color: #D8B4FE; |
| Android | 0xFFD8B4FE |
| Swift | UIColor(red: 0.847, green: 0.706, blue: 0.996, alpha: 1) |
Accessibility and contrast
| White text on #D8B4FE | 1.77:1 — AA fail · AA large fail · AAA fail |
| Black text on #D8B4FE | 11.88: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 #D8B4FE
Each swatch keeps the hue and saturation of #D8B4FE and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #D8B4FE
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #D8B4FE in code
/* CSS */
.element { color: #D8B4FE; background-color: #D8B4FE; }
.element { color: rgb(216 180 254); }
.element { color: hsl(269 97% 85%); }
/* Tailwind */
<div class="bg-purple-300 text-black">
/* SCSS variable */
$brand: #D8B4FE;
Frequently asked questions
What color is #D8B4FE?
#D8B4FE is a very light, vivid violet. Its hue sits at 269° on the color wheel, with 97% saturation and 85% lightness.
What is #D8B4FE in RGB?
#D8B4FE converts to rgb(216, 180, 254) — 216 red, 180 green and 254 blue.
What is #D8B4FE in CMYK?
Approximately cmyk(15%, 29%, 0%, 0%). 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 #D8B4FE be white or black?
Black gives the better contrast ratio (11.88:1 versus 1.77:1).
What is the complementary color of #D8B4FE?
#DAFEB4 — the hue directly opposite #D8B4FE on the color wheel.