#512F9C

Color Details

HEX
#512F9C
RGB
rgb(81, 47, 156)
HSL
hsl(259, 54%, 40%)
CMYK
cmyk(48%, 70%, 0%, 39%)
Best text on this color #FFFFFF (CR 9.39:1) Determined by WCAG contrast ratio

Complement & Analogous

Monochrome

Analogous

Complementary Mix

Embed #512F9C swatch

Embed this swatch

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

Open image

About #512F9C

#512F9C converts to RGB(81, 47, 156) and HSL(259, 54%, 40%). 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).

#512F9C FAQs

What is the RGB value of #512F9C?
RGB: 81, 47, 156. Copy as CSS: rgb(81, 47, 156)
Is #512F9C a web-safe color?
No — not in the 216-color “web-safe” palette.
What is the complementary color of #512F9C?
Complement: #7a9d2f.
Does #512F9C have good contrast on white or black?
On white: 9.39:1 (AAA (normal text)). On black: 2.24:1 (Fails AA).