#581C87 color
The swatch above shows #581C87 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.
#581C87 is a dark, vivid violet, closest to the CSS named color rebeccapurple (#663399).
It is also a Tailwind CSS default: purple-900. That means you can write bg-purple-900 or text-purple-900 directly, with no arbitrary-value brackets and no entry in your theme config.
Color values
| HEX | #581C87 |
| RGB | rgb(88, 28, 135) |
| HSL | hsl(274, 66%, 32%) |
| CMYK | cmyk(35%, 79%, 0%, 47%) |
| Decimal | 5774471 |
| CSS | color: #581C87; |
| Android | 0xFF581C87 |
| Swift | UIColor(red: 0.345, green: 0.110, blue: 0.529, alpha: 1) |
Accessibility and contrast
| White text on #581C87 | 10.88:1 — AA pass · AA large pass · AAA pass |
| Black text on #581C87 | 1.93: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 #581C87
Each swatch keeps the hue and saturation of #581C87 and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #581C87
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #581C87 in code
/* CSS */
.element { color: #581C87; background-color: #581C87; }
.element { color: rgb(88 28 135); }
.element { color: hsl(274 66% 32%); }
/* Tailwind */
<div class="bg-purple-900 text-white">
/* SCSS variable */
$brand: #581C87;
Frequently asked questions
What color is #581C87?
#581C87 is a dark, vivid violet. Its hue sits at 274° on the color wheel, with 66% saturation and 32% lightness.
What is #581C87 in RGB?
#581C87 converts to rgb(88, 28, 135) — 88 red, 28 green and 135 blue.
What is #581C87 in CMYK?
Approximately cmyk(35%, 79%, 0%, 47%). 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 #581C87 be white or black?
White gives the better contrast ratio (10.88:1 versus 1.93:1).
What is the complementary color of #581C87?
#4A871C — the hue directly opposite #581C87 on the color wheel.