#5A51A6

Color Details

HEX
#5A51A6
RGB
rgb(90, 81, 166)
HSL
hsl(246, 34%, 48%)
CMYK
cmyk(46%, 51%, 0%, 35%)
Best text on this color #FFFFFF (CR 6.64:1) Determined by WCAG contrast ratio

Complement & Analogous

Monochrome

Analogous

Complementary Mix

Embed #5A51A6 swatch

Embed this swatch

Use this HTML on your site (free with a link):

Open image

About #5A51A6

#5A51A6 converts to RGB(90, 81, 166) and HSL(246, 34%, 48%). This page provides quick readability checks, related hues (complementary and analogous), and ready-made palettes so you can drop the color into UI components, images, or CSS immediately.

Tip: Use the “Best text” chip above as a safe default foreground on this color (chosen by contrast ratio).

#5A51A6 FAQs

What is the RGB value of #5A51A6?
RGB: 90, 81, 166. Copy as CSS: rgb(90, 81, 166)
Is #5A51A6 a web-safe color?
No — not in the 216-color “web-safe” palette.
What is the complementary color of #5A51A6?
Complement: #9ca451.
Does #5A51A6 have good contrast on white or black?
On white: 6.64:1 (AA (normal text)). On black: 3.16:1 (AA (large text)).