Maroon Colors  ·  Color Library

Palettes / Colors / #511FD2

#511FD2 — Purple

#511FD2 is a purple color we call Purple, closest to the named color BlueViolet (#8A2BE2). It belongs to the purple family.

Color name

Closest CSS keyword: blueviolet (#8A2BE2) — not an exact match. CSS blueviolet gives you #8A2BE2, a different color; use #511FD2 when you need this exact shade.

Sources: common names follow widely used color-name references; CSS keywords and their hex values follow the CSS Color specification.

#511FD2 is a cool purple color associated with luxury, creativity and mystery. It is saturated enough to be the accent — buttons, highlights and calls to action — while neutrals do the quiet work around it.

Its strongest partner is its complement #9ED11F; it also sits naturally between #1F46D1 and #AA1FD1. In the palettes below you can see it working alongside real color combinations from our collection.

#511FD2 · RGB 81, 31, 210

Download PNG swatch SVG

Color values

HEX#511FD2
RGB81, 31, 210
HSL257°, 74%, 47%
HSV257°, 85%, 82%
CMYK61%, 85%, 0%, 18%
XYZ15.52, 7.38, 61.58
Yxy7.38, 0.1837, 0.0874
CIE-Lab32.66, 63.52, -81.49
Hunter Lab27.17, 56.72, -121.33

RGB & CMYK percentages

Red 32% · Green 12% · Blue 82%

Cyan 61% · Magenta 85% · Yellow 0% · Key 18%

CMYK values are unprofiled approximations for screen reference — not a print-proofing guarantee.

Previews

Sample text in #511FD2 on black
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sample text in #511FD2 on white
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

CSS code for #511FD2

.text { color: #511FD2; }
.background { background-color: #511FD2; }
.border { border: 3px solid #511FD2; }
.text-rgb { color: rgb(81, 31, 210); }
.text-hsl { color: hsl(257, 74%, 47%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #511FD2; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(81, 31, 210, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #511FD2; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(81, 31, 210, 0.8); }

HTML: <p style="color:#511FD2">Text here</p> · <div style="background-color:#511FD2">Div content here</div>

Shades of #511FD2

#4A1DBF#4219A9#3B1797#341485#2D1173#240E5D#1D0B4B#17093A#0E0523#070312

Tints of #511FD2

#5D2ADF#6E40E2#7F56E6#906DE9#A183EC#AE95EF#BFABF2#D0C1F6#E1D7F9#F2EDFC

Tones of #511FD2

#572CC3#5C38B7#6246AA#67519E#6D5F91#726B85

Color harmonies

Complementary — #9ED11F:

Analogous:

Triadic:

Contrast & accessibility

Against white text8.48:1 AAA
Against black text2.48:1 Fails

Best text color on #511FD2: #FFFFFF.

Semi-transparent (opacity) text on #511FD2

Text set with opacity blends into the background, so its real contrast is lower than the solid ratios above. Choose a text color and an opacity to see the blended color and its true ratio:

100%
Sample heading text
Smaller body text shows the effect best.

Blended color: · Contrast against #511FD2: ·

How #511FD2 looks with color blindness

Simulated with standard Machado color-vision-deficiency matrices — useful when this color carries meaning in charts, maps or interfaces:

Protanopia · #3B3BA7Deuteranopia · #3E429CTritanopia · #4F847D

Closest design-system colors

The nearest matches in the Tailwind CSS, Material Design and Bootstrap palettes — handy when you need a framework class instead of a raw hex:

Tailwind indigo 600 · #4F46E5Material Deep Purple 500 · #673AB7Tailwind violet 600 · #7C3AED

Palettes with a similar color

These palettes use a close neighbour of #511FD2 rather than the exact color:

Tender Lagoon
#BD4824 · #27CF4F · #4F27CF · #EAC8BC
Palette 591fce
#591FCE · #0C9CEE · #3DBDC2 · #A1F480
Amber Ruby Ember
#69900E · #E3ED4B · #4E15D4 · #B7A5F0
Gentle Ruby Bloom
#16C3CE · #84AAEB · #4A27D6 · #CF6BED
Misty Ruby Meadow
#72BEED · #3153E2 · #522BD0 · #B961E5
Burning Garden
#5A7817 · #91DD4B · #5A26CC · #DACAF1

Similar colors

The closest colors that actually appear in our palette collection — click any to open its page:

#4F27CF#591FCE#4E15D4#4A27D6#522BD0#5A26CC#4D23DE#4B25DD#5914D6#4717CB#5526C5#562DD8

Browse neighbouring colors

← #511FD1  ·  #511FD3 →

Frequently asked questions

What color is #511FD2?

#511FD2 is Purple, a purple color (RGB 81, 31, 210). Its closest standard named color is BlueViolet.

What is the RGB and HSL of #511FD2?

#511FD2 is RGB 81, 31, 210 — HSL 257°, 74%, 47% — CMYK 61%, 85%, 0%, 18%.

What colors go with #511FD2?

Its complement is #9ED11F; analogous partners are #1F46D1 and #AA1FD1. It also appears in 6+ palettes in our collection.

Can I use #511FD2 for text?

White text on #511FD2 has a contrast ratio of 8.48:1 (passes WCAG AA); black text gives 2.48:1.