Maroon Colors  ·  Color Library

Palettes / Colors / #511FA0

#511FA0 — Purple

#511FA0 is a purple color we call Purple, closest to the named color DarkSlateBlue (#483D8B). It belongs to the purple family.

Color name

Closest CSS keyword: darkslateblue (#483D8B) — not an exact match. CSS darkslateblue gives you #483D8B, a different color; use #511FA0 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.

#511FA0 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 #6D9F1E; it also sits naturally between #1E2D9F and #901E9F. In the palettes below you can see it working alongside real color combinations from our collection.

#511FA0 · RGB 81, 31, 160

Download PNG swatch SVG

Color values

HEX#511FA0
RGB81, 31, 160
HSL263°, 68%, 37%
HSV263°, 81%, 63%
CMYK49%, 81%, 0%, 37%
XYZ10.23, 5.27, 33.74
Yxy5.27, 0.2078, 0.1070
CIE-Lab27.48, 50.40, -60.36
Hunter Lab22.95, 41.26, -75.12

RGB & CMYK percentages

Red 32% · Green 12% · Blue 63%

Cyan 49% · Magenta 81% · Yellow 0% · Key 37%

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

Previews

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

CSS code for #511FA0

.text { color: #511FA0; }
.background { background-color: #511FA0; }
.border { border: 3px solid #511FA0; }
.text-rgb { color: rgb(81, 31, 160); }
.text-hsl { color: hsl(263, 68%, 37%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #511FA0; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(81, 31, 160, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #511FA0; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(81, 31, 160, 0.8); }

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

Shades of #511FA0

#491C92#401881#3A1674#331467#2D115A#240E49#1E0B3C#18092F#0F061E#090311

Tints of #511FA0

#5C23B8#6928D2#7A3EDA#8C58DF#9D72E4#AC87E8#BEA1ED#D0BAF2#E1D4F7#F3EEFC

Tones of #511FA0

#522895#54308D#563A83#58437A#5A4C70#5C5568

Color harmonies

Complementary — #6D9F1E:

Analogous:

Triadic:

Contrast & accessibility

Against white text10.23:1 AAA
Against black text2.05:1 Fails

Best text color on #511FA0: #FFFFFF.

Semi-transparent (opacity) text on #511FA0

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 #511FA0: ·

How #511FA0 looks with color blindness

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

Protanopia · #3B3B81Deuteranopia · #3E4279Tritanopia · #4F6863

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:

Material Deep Purple 500 · #673AB7Material Indigo 500 · #3F51B5Material Purple 500 · #9C27B0

Palettes with a similar color

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

Radiant Ruby Whisper
#DCCEF3 · #A078DE · #501D9F · #231042
Palette 4a249d
#4A249D · #009FBD · #F9E2AF · #F6F5F5
Lucky Ruby Dusk
#288396 · #2B6CC5 · #2A2CD0 · #54279B
Vintage Ruby Cinder
#54A7C2 · #5F74CB · #52299C · #A32FAE
Vivid Lagoon
#5228A7 · #AC71DD · #97C931 · #CDE4AD
Lavender Haze
#5A189A · #9D4EDD · #C77DFF · #E0AAFF

Similar colors

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

#501D9F#4A249D#54279B#52299C#5228A7#5A189A#4421A3#582998#5E189D#4F16AC#5711A0#4B109E

Browse neighbouring colors

← #511F9F  ·  #511FA1 →

Frequently asked questions

What color is #511FA0?

#511FA0 is Purple, a purple color (RGB 81, 31, 160). Its closest standard named color is DarkSlateBlue.

What is the RGB and HSL of #511FA0?

#511FA0 is RGB 81, 31, 160 — HSL 263°, 68%, 37% — CMYK 49%, 81%, 0%, 37%.

What colors go with #511FA0?

Its complement is #6D9F1E; analogous partners are #1E2D9F and #901E9F. It also appears in 6+ palettes in our collection.

Can I use #511FA0 for text?

White text on #511FA0 has a contrast ratio of 10.23:1 (passes WCAG AA); black text gives 2.05:1.