#540052 color

#540052 rgb(84, 0, 82)
Shades of purple

The hex color #540052 is a very dark, vivid magenta.

In the RGB color model it is made of 32.9% red, 0% green and 32.2% blue (84, 0, 82).

Its hue angle is 301°, with 100% saturation and 16% lightness. For print, the CMYK equivalent is 0% cyan, 100% magenta, 2% yellow and 67% black.

The closest named color is Cloak and Dagger (#550055), a difference of 0.6 ΔE, which is barely visible.

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

#540052 color codes

HEX#540052
RGBrgb(84, 0, 82)
RGB percentrgb(32.9%, 0%, 32.2%)
HSLhsl(301, 100%, 16%)
HSV / HSBhsv(301, 100%, 33%)
CMYKcmyk(0%, 100%, 2%, 67%)
CIE LABlab(17.89, 43.47, -25.99)
CIE LCHlch(17.89, 50.64, 329.13)
CIE XYZxyz(5.179, 2.494, 8.19)
Decimal5505106
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #540052, 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 #540052RatioAAAAAAA large
Sample text1.5:1FailFailFail
Sample text14.01:1PassPassPass
#540052 as text onRatioAAAAAAA large
Sample text14.01:1PassPassPass
Sample text1.5: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 #540052 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #540052; }
.text { color: #540052; }
.border { border: 2px solid #540052; }
.transparent { background-color: rgb(84 0 82 / 50%); }
.gradient { background: linear-gradient(to right, #540052, #540028); }
Background
Text color
Border

Similar colors

Closest common color name: Byzantium.

Questions

What color is #540052?
#540052 is a very dark, vivid magenta, closest to the named color Cloak and Dagger. It belongs to the purple family of colors.
What is the RGB value of #540052?
The RGB value is 84, 0, 82: 84 red, 0 green and 82 blue on a 0 to 255 scale.
What is the complementary color of #540052?
The complementary color is #005402, found by rotating the hue 180° on the color wheel.
Is black or white text better on #540052?
White text. Black text has a contrast ratio of 1.5:1 and white text 14.01:1. WCAG asks for at least 4.5:1 for normal text.