#540C46 color

#540C46 rgb(84, 12, 70)
Shades of purple

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

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

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

The closest named color is Cosmic Explorer (#551155), a difference of 3.8 ΔE, a small difference.

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

#540C46 color codes

HEX#540C46
RGBrgb(84, 12, 70)
RGB percentrgb(32.9%, 4.7%, 27.5%)
HSLhsl(312, 75%, 19%)
HSV / HSBhsv(312, 86%, 33%)
CMYKcmyk(0%, 86%, 17%, 67%)
CIE LABlab(18.32, 38.06, -17.08)
CIE LCHlch(18.32, 41.72, 335.83)
CIE XYZxyz(4.893, 2.59, 6.035)
Decimal5508166
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #540C46, 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 #540C46RatioAAAAAAA large
Sample text1.52:1FailFailFail
Sample text13.83:1PassPassPass
#540C46 as text onRatioAAAAAAA large
Sample text13.83:1PassPassPass
Sample text1.52: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 #540C46 looks to people with the most common types of color vision deficiency.

CSS examples

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

Similar colors

Questions

What color is #540C46?
#540C46 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 #540C46?
The RGB value is 84, 12, 70: 84 red, 12 green and 70 blue on a 0 to 255 scale.
What is the complementary color of #540C46?
The complementary color is #0C541A, found by rotating the hue 180° on the color wheel.
Is black or white text better on #540C46?
White text. Black text has a contrast ratio of 1.52:1 and white text 13.83:1. WCAG asks for at least 4.5:1 for normal text.