#540C51 color

#540C51 rgb(84, 12, 81)
Shades of purple

The hex color #540C51 is a very dark, moderate magenta.

In the RGB color model it is made of 32.9% red, 4.7% green and 31.8% blue (84, 12, 81).

Its hue angle is 303°, with 75% saturation and 19% lightness. For print, the CMYK equivalent is 0% cyan, 86% magenta, 4% yellow and 67% black.

The closest named color is Cosmic Explorer (#551155), a difference of 1 ΔE, which is barely visible.

White text is the more readable choice on this background (contrast 13.56:1).

#540C51 color codes

HEX#540C51
RGBrgb(84, 12, 81)
RGB percentrgb(32.9%, 4.7%, 31.8%)
HSLhsl(303, 75%, 19%)
HSV / HSBhsv(303, 86%, 33%)
CMYKcmyk(0%, 86%, 4%, 67%)
CIE LABlab(18.98, 39.92, -23.58)
CIE LCHlch(18.98, 46.36, 329.43)
CIE XYZxyz(5.273, 2.742, 8.035)
Decimal5508177
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #540C51, based on their position on the color wheel.

Complementary

The color opposite on the color wheel (180°). Strongest contrast.

Analogous

Neighbors 30° either side. Calm, natural combinations.

Split complementary

The two colors next to the complement (150° and 210°).

Triadic

Three colors evenly spaced, 120° apart.

Tetradic (square)

Four colors 90° apart.

Shades, tints and tones

Shades (darker, mixed with black)

Tints (lighter, mixed with white)

Tones (mixed with gray)

Contrast and accessibility

Text on #540C51RatioAAAAAAA large
Sample text1.55:1FailFailFail
Sample text13.56:1PassPassPass
#540C51 as text onRatioAAAAAAA large
Sample text13.56:1PassPassPass
Sample text1.55:1FailFailFail

WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.

Color blindness simulation

How #540C51 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #540c51; }
.text { color: #540c51; }
.border { border: 2px solid #540c51; }
.transparent { background-color: rgb(84 12 81 / 50%); }
.gradient { background: linear-gradient(to right, #540c51, #540c2d); }
Background
Text color
Border

Similar colors

Closest common color name: Byzantium.

Questions

What color is #540C51?
#540C51 is a very dark, moderate magenta, closest to the named color Cosmic Explorer. It belongs to the purple family of colors.
What is the RGB value of #540C51?
The RGB value is 84, 12, 81: 84 red, 12 green and 81 blue on a 0 to 255 scale.
What is the complementary color of #540C51?
The complementary color is #0C540F, found by rotating the hue 180° on the color wheel.
Is black or white text better on #540C51?
White text. Black text has a contrast ratio of 1.55:1 and white text 13.56:1. WCAG asks for at least 4.5:1 for normal text.