#5B187A Hex Color
Online color picker to view shades, tints, color codes, and complementary colors

Dark and cool, #5b187a is a saturated purple with a slightly red-violet cast. Its low lightness creates a serious, mysterious mood suited to luxury branding, spiritual themes, gaming interfaces, and moody backgrounds. Use it as a dominant dark base with white text, which achieves about 11.3:1 contrast. The hex code for this purple is #5b187a.
Questions about #5b187a
What is #5b187a in RGB, HSL and CMYK?
In RGB, #5b187a is rgb(91, 24, 122), in HSL hsl(281, 67%, 29%) and in CMYK 25%, 80%, 0%, 52%.
What colors pair well with #5b187a?
Pair #5b187a with white, pale lavender, soft pink, or muted gold to balance its cool red-violet depth; use warm accents sparingly for luxury layouts, while lighter neutrals keep interfaces readable and prevent the dark purple from feeling too heavy.
Is #5b187a a warm or cool color?
#5b187a reads as a cool purple because its blue component remains stronger than its red component, despite a noticeable red-violet cast; that balance gives it a deep, composed character rather than a bright, playful violet.
Does #5b187a work with white text?
#5b187a provides strong contrast with white text, at roughly 11.3:1, so it clears WCAG AA and AAA thresholds for normal-sized text; use white for primary copy and reserve darker text for a pale background.
Where does #5b187a work best?
Use #5b187a as a dominant background, header, or accent when you want a serious, mysterious mood; it suits luxury branding, spiritual themes, gaming interfaces, and other designs that benefit from deep color.
Is #5b187a readable on white or black?
#5b187a has a 11.31:1 contrast ratio on white and 1.85:1 on black. WCAG asks for 4.5:1 for body text and 3:1 for large text, so on white it works for body text and on black it is too faint for text. Try other pairs in the contrast checker.