Toolman

#581C87 color

#581C87#581C87

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
RGBrgb(88, 28, 135)
HSLhsl(274, 66%, 32%)
CMYKcmyk(35%, 79%, 0%, 47%)
Decimal5774471
CSScolor: #581C87;
Android0xFF581C87
SwiftUIColor(red: 0.345, green: 0.110, blue: 0.529, alpha: 1)

Accessibility and contrast

White text on #581C8710.88:1 — AA pass · AA large pass · AAA pass
Black text on #581C871.93:1 — AA fail · AA large fail · AAA fail
Recommended text colorwhite

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.

95%
85%
75%
65%
55%
45%
35%
25%
15%

Colors that go with #581C87

Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.

Complementary
Triadic +120°
Triadic +240°
Analogous −30°
Analogous +30°
Split −150°
Split +150°

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.

Convert any color → · Browse all colors