Maroon Colors  ·  Color Library

Palettes / Colors / #540BFC

#540BFC — Vivid Purple

#540BFC is a purple color we call Vivid 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 #540BFC 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.

#540BFC 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 #B5FD0D; it also sits naturally between #0D3DFD and #CD0DFD. In the palettes below you can see it working alongside real color combinations from our collection.

#540BFC · RGB 84, 11, 252

Download PNG swatch SVG

Color values

HEX#540BFC
RGB84, 11, 252
HSL258°, 98%, 52%
HSV258°, 96%, 99%
CMYK67%, 96%, 0%, 1%
XYZ21.35, 9.15, 92.74
Yxy9.15, 0.1732, 0.0743
CIE-Lab36.28, 78.60, -99.45
Hunter Lab30.25, 75.81, -168.45

RGB & CMYK percentages

Red 33% · Green 4% · Blue 99%

Cyan 67% · Magenta 96% · Yellow 0% · Key 1%

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

Previews

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

CSS code for #540BFC

.text { color: #540BFC; }
.background { background-color: #540BFC; }
.border { border: 3px solid #540BFC; }
.text-rgb { color: rgb(84, 11, 252); }
.text-hsl { color: hsl(258, 98%, 52%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #540BFC; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(84, 11, 252, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #540BFC; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(84, 11, 252, 0.8); }

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

Shades of #540BFC

#4902ED#4102D4#3B02C0#3302A7#2B018D#240174#1C015B#160147#0E002D#060014

Tints of #540BFC

#6321FD#753AFD#834EFD#9568FD#A37CFE#B190FE#C3A9FE#D1BDFE#E3D7FF#F1EBFF

Tones of #540BFC

#5B1EEB#622FDA#6940C9#7051B8#7762A7#7E7396

Color harmonies

Complementary — #B5FD0D:

Analogous:

Triadic:

Contrast & accessibility

Against white text7.42:1 AAA
Against black text2.83:1 Fails

Best text color on #540BFC: #FFFFFF.

Semi-transparent (opacity) text on #540BFC

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 #540BFC: ·

How #540BFC looks with color blindness

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

Protanopia · #3434C2Deuteranopia · #393EB4Tritanopia · #50948A

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 violet 600 · #7C3AEDTailwind indigo 600 · #4F46E5Tailwind purple 600 · #9333EA

Palettes with a similar color

These palettes use a close neighbour of #540BFC rather than the exact color:

Palette 000000
#000000 · #5800FF · #E900FF · #FFC600
Modern Ruby Monsoon
#280708 · #4B13FB · #4FFEF3 · #3EF994
Scarlet Ruby Ember
#182610 · #1CFCE4 · #4813F9 · #6E1CFA
Palette 5902ec
#5902EC · #E04DB0 · #F2C9E1 · #FFFA4D
Palette 4300ff
#4300FF · #0065F8 · #00CAFF · #00FFDE
Hidden Ruby Cinder
#153611 · #4116F9 · #14D8F9 · #F76329

Similar colors

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

#5800FF#4B13FB#4813F9#5902EC#4300FF#4116F9#6900FF#5B23FF#5F24F6#6F00FF#4D1CE5#5629FB

Browse neighbouring colors

← #540BFB  ·  #540BFD →

Frequently asked questions

What color is #540BFC?

#540BFC is Vivid Purple, a purple color (RGB 84, 11, 252). Its closest standard named color is BlueViolet.

What is the RGB and HSL of #540BFC?

#540BFC is RGB 84, 11, 252 — HSL 258°, 98%, 52% — CMYK 67%, 96%, 0%, 1%.

What colors go with #540BFC?

Its complement is #B5FD0D; analogous partners are #0D3DFD and #CD0DFD. It also appears in 6+ palettes in our collection.

Can I use #540BFC for text?

White text on #540BFC has a contrast ratio of 7.42:1 (passes WCAG AA); black text gives 2.83:1.