#6D28D9 color
The swatch above shows #6D28D9 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.
#6D28D9 is a medium, vivid violet, closest to the CSS named color blueviolet (#8A2BE2).
It is also a Tailwind CSS default: violet-700. That means you can write bg-violet-700 or text-violet-700 directly, with no arbitrary-value brackets and no entry in your theme config.
Color values
| HEX | #6D28D9 |
| RGB | rgb(109, 40, 217) |
| HSL | hsl(263, 70%, 50%) |
| CMYK | cmyk(50%, 82%, 0%, 15%) |
| Decimal | 7153881 |
| CSS | color: #6D28D9; |
| Android | 0xFF6D28D9 |
| Swift | UIColor(red: 0.427, green: 0.157, blue: 0.851, alpha: 1) |
Accessibility and contrast
| White text on #6D28D9 | 7.10:1 — AA pass · AA large pass · AAA pass |
| Black text on #6D28D9 | 2.96:1 — AA fail · AA large fail · 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 #6D28D9
Each swatch keeps the hue and saturation of #6D28D9 and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #6D28D9
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #6D28D9 in code
/* CSS */
.element { color: #6D28D9; background-color: #6D28D9; }
.element { color: rgb(109 40 217); }
.element { color: hsl(263 70% 50%); }
/* Tailwind */
<div class="bg-violet-700 text-white">
/* SCSS variable */
$brand: #6D28D9;
Frequently asked questions
What color is #6D28D9?
#6D28D9 is a medium, vivid violet. Its hue sits at 263° on the color wheel, with 70% saturation and 50% lightness.
What is #6D28D9 in RGB?
#6D28D9 converts to rgb(109, 40, 217) — 109 red, 40 green and 217 blue.
What is #6D28D9 in CMYK?
Approximately cmyk(50%, 82%, 0%, 15%). 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 #6D28D9 be white or black?
White gives the better contrast ratio (7.10:1 versus 2.96:1).
What is the complementary color of #6D28D9?
#94D926 — the hue directly opposite #6D28D9 on the color wheel.