Recognised as Colour
#540C5F
- #540C5F
- Magenta
- Dark
- Nearest: Purple
#540C5F is a magenta with RGB values 84, 12, 95 and HSL 292°, 78%, 21%. It is a dark colour, so white text on it reaches 13.2:1 contrast (AAA for normal text). The nearest named colour is Purple.
Colour values
#540C5F#540C5F
HEX#540C5F
RGBrgb(84, 12, 95)
RGB (0–1)0.3294, 0.0471, 0.3725
RGB percentages32.9%, 4.7%, 37.3%
HSLhsl(292, 77.6%, 21%)
HSV / HSBhsv(292, 87.4%, 37.3%)
CMYK11.6%, 87.4%, 0%, 62.7%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer5,508,191
CSS custom property--colour: #540C5F;
Brightness & contrast
Relative luminance0.02974WCAG 2.x, 0 is black and 1 is white
Perceived brightness56.8 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 13.17:1
Contrast with white13.17:1WCAG normal text: AAA
Contrast with black1.59:1WCAG normal text: Fail
Greyscale equivalent#212121
Inverted#ABF3A0
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text13.17:1WCAG large text: AAA
Contrast with black, large text1.59:1WCAG large text: Fail
Named colours
Hue familymagenta
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#175F0C
Analogous#2B0C5F, #5F0C41
Triadic#5F540C, #0C5F54
Split complementary#405F0C, #0C5F2B
Tetradic#5F2B0C, #175F0C, #0C405F
Tints, shades & saturation
Channel breakdown
R84
G12
B95
Red84 (32.9%)
Green12 (4.7%)
Blue95 (37.3%)
Hue292.05°
Saturation (HSL)77.57%
Lightness20.98%
Dominant channelBlue
Hex per channelR 54 · G 0C · B 5F
Keep nerding
Every link below is a page Nerdulator can generate from what it already knows about this value.
Harmonies
Similar named colours
Nerdulate something else
Nothing in mind? Surprise me · today’s page