#D946EF color
#D946EF is a light, vivid magenta, closest to the CSS named color mediumorchid (#BA55D3).
Color values
| HEX | #D946EF |
| RGB | rgb(217, 70, 239) |
| HSL | hsl(292, 84%, 61%) |
| CMYK | cmyk(9%, 71%, 0%, 6%) |
| Decimal | 14239471 |
| CSS | color: #D946EF; |
| Android | 0xFFD946EF |
| Swift | UIColor(red: 0.851, green: 0.275, blue: 0.937, alpha: 1) |
Accessibility and contrast
| White text on #D946EF | 3.46:1 — AA fail · AA large pass · AAA fail |
| Black text on #D946EF | 6.07:1 — AA pass · AA large pass · AAA fail |
| 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 #D946EF
Each swatch keeps the hue and saturation of #D946EF and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #D946EF
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #D946EF in code
/* CSS */
.element { color: #D946EF; background-color: #D946EF; }
.element { color: rgb(217 70 239); }
.element { color: hsl(292 84% 61%); }
/* Tailwind arbitrary value */
<div class="bg-[#D946EF] text-black">
/* SCSS variable */
$brand: #D946EF;
Frequently asked questions
What color is #D946EF?
#D946EF is a light, vivid magenta. Its hue sits at 292° on the color wheel, with 84% saturation and 61% lightness.
What is #D946EF in RGB?
#D946EF converts to rgb(217, 70, 239) — 217 red, 70 green and 239 blue.
What is #D946EF in CMYK?
Approximately cmyk(9%, 71%, 0%, 6%). 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 #D946EF be white or black?
Black gives the better contrast ratio (6.07:1 versus 3.46:1).
What is the complementary color of #D946EF?
#5EEF48 — the hue directly opposite #D946EF on the color wheel.