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