#540C51 color
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 | |
|---|---|---|
| RGB | rgb(84, 12, 81) | |
| RGB percent | rgb(32.9%, 4.7%, 31.8%) | |
| HSL | hsl(303, 75%, 19%) | |
| HSV / HSB | hsv(303, 86%, 33%) | |
| CMYK | cmyk(0%, 86%, 4%, 67%) | |
| CIE LAB | lab(18.98, 39.92, -23.58) | |
| CIE LCH | lch(18.98, 46.36, 329.43) | |
| CIE XYZ | xyz(5.273, 2.742, 8.035) | |
| Decimal | 5508177 | |
| Short hex | None (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 #540C51 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.55:1 | Fail | Fail | Fail |
| Sample text | 13.56:1 | Pass | Pass | Pass |
| #540C51 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.56:1 | Pass | Pass | Pass |
| Sample text | 1.55: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 #540C51 looks to people with the most common types of color vision deficiency.
#022853Protanopia
no red cones#23314fDeuteranopia
no green cones#57172fTritanopia
no blue cones#2e2e2eAchromatopsia
no color vision
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); }
Similar colors
#551155Cosmic Explorer#550055Cloak and Dagger#581a57Purple Velour#441144Velvet Cosmos#480656Clairvoyant#431c53Plunged Into Darkness#3b0346Romanic Scene#552367Elegant Purple Gown
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.