Skip to main content

#540F7B

Share this color with others or download a color card image with HEX and RGB values. Perfect for social media, presentations, or design reference.

All Formats

HEX
#540F7B
RGB
rgb(84, 15, 123)
RGBA
rgba(84, 15, 123, 1)
HSL
hsl(278.33, 78.26%, 27.06%)
HSLA
hsla(278, 78%, 27%, 1)
CMYK
cmyk(32%, 88%, 0%, 52%)

Color Palettes

Harmonious color combinations based on #540F7B

Monochromatic

Shades and tints of the same hue

#1F062D
#5C1188
#9A1CE3
#C277EE
#EBD2F9

Analogous

Adjacent colors on the color wheel

#0F377B
#1D0F7B
#540F7B
#7B0F6C
#7B0F37

Complementary

Opposite color for maximum contrast

#540F7B
#377B0F

Triadic

Three evenly spaced colors

#540F7B
#7B530F
#0F7B53

CSS Usage Examples

Background

background-color: #540F7B;

Text

color: #540F7B;

Border

border: 2px solid #540F7B;

Shadow

box-shadow: 0 4px 6px #540F7B40;
Feedback