#540052 color
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 | |
|---|---|---|
| RGB | rgb(84, 0, 82) | |
| RGB percent | rgb(32.9%, 0%, 32.2%) | |
| HSL | hsl(301, 100%, 16%) | |
| HSV / HSB | hsv(301, 100%, 33%) | |
| CMYK | cmyk(0%, 100%, 2%, 67%) | |
| CIE LAB | lab(17.89, 43.47, -25.99) | |
| CIE LCH | lch(17.89, 50.64, 329.13) | |
| CIE XYZ | xyz(5.179, 2.494, 8.19) | |
| Decimal | 5505106 | |
| Short hex | None (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 #540052 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.5:1 | Fail | Fail | Fail |
| Sample text | 14.01:1 | Pass | Pass | Pass |
| #540052 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.01:1 | Pass | Pass | Pass |
| Sample text | 1.5:1 | Fail | Fail | Fail |
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.
#002554Protanopia
no red cones#1e2f50Deuteranopia
no green cones#57112dTritanopia
no blue cones#2c2c2cAchromatopsia
no color vision
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); }
Similar colors
#550055Cloak and Dagger#551155Cosmic Explorer#480656Clairvoyant#581a57Purple Velour#441144Velvet Cosmos#3b0346Romanic Scene#431c53Plunged Into Darkness#540d6eVelvet Vortex
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.