#9F40BF color
#9F40BF is a medium, moderately saturated violet, closest to the CSS named color darkorchid (#9932CC).
Color values
| HEX | #9F40BF |
| RGB | rgb(159, 64, 191) |
| HSL | hsl(285, 50%, 50%) |
| CMYK | cmyk(17%, 66%, 0%, 25%) |
| Decimal | 10436799 |
| CSS | color: #9F40BF; |
| Android | 0xFF9F40BF |
| Swift | UIColor(red: 0.624, green: 0.251, blue: 0.749, alpha: 1) |
Accessibility and contrast
| White text on #9F40BF | 5.30:1 — AA pass · AA large pass · AAA fail |
| Black text on #9F40BF | 3.96:1 — AA fail · AA large pass · AAA fail |
| Recommended text color | white |
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 #9F40BF
Each swatch keeps the hue and saturation of #9F40BF and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #9F40BF
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #9F40BF in code
/* CSS */
.element { color: #9F40BF; background-color: #9F40BF; }
.element { color: rgb(159 64 191); }
.element { color: hsl(285 50% 50%); }
/* Tailwind arbitrary value */
<div class="bg-[#9F40BF] text-white">
/* SCSS variable */
$brand: #9F40BF;
Frequently asked questions
What color is #9F40BF?
#9F40BF is a medium, moderately saturated violet. Its hue sits at 285° on the color wheel, with 50% saturation and 50% lightness.
What is #9F40BF in RGB?
#9F40BF converts to rgb(159, 64, 191) — 159 red, 64 green and 191 blue.
What is #9F40BF in CMYK?
Approximately cmyk(17%, 66%, 0%, 25%). 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 #9F40BF be white or black?
White gives the better contrast ratio (5.30:1 versus 3.96:1).
What is the complementary color of #9F40BF?
#60BF40 — the hue directly opposite #9F40BF on the color wheel.