Recognised as Colour
#540F42
- #540F42
- Magenta
- Dark
- Nearest: Dark slateblue
#540F42 is a magenta with RGB values 84, 15, 66 and HSL 316°, 70%, 19%. It is a dark colour, so white text on it reaches 13.8:1 contrast (AAA for normal text). The nearest named colour is Dark slateblue.
Colour values
#540F42#540F42
HEX#540F42
RGBrgb(84, 15, 66)
RGB (0–1)0.3294, 0.0588, 0.2588
RGB percentages32.9%, 5.9%, 25.9%
HSLhsl(315.7, 69.7%, 19.4%)
HSV / HSBhsv(315.7, 82.1%, 32.9%)
CMYK0%, 82.1%, 21.4%, 67.1%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer5,508,930
CSS custom property--colour: #540F42;
Brightness & contrast
Relative luminance0.0262WCAG 2.x, 0 is black and 1 is white
Perceived brightness52.3 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 13.78:1
Contrast with white13.78:1WCAG normal text: AAA
Contrast with black1.52:1WCAG normal text: Fail
Greyscale equivalent#212121
Inverted#ABF0BD
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text13.78:1WCAG large text: AAA
Contrast with black, large text1.52:1WCAG large text: Fail
Named colours
Hue familymagenta
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#0F5421
Analogous#440F54, #540F1F
Triadic#42540F, #0F4254
Split complementary#1F540F, #0F5444
Tetradic#54440F, #0F5421, #0F1F54
Tints, shades & saturation
Channel breakdown
R84
G15
B66
Red84 (32.9%)
Green15 (5.9%)
Blue66 (25.9%)
Hue315.65°
Saturation (HSL)69.7%
Lightness19.41%
Dominant channelRed
Hex per channelR 54 · G 0F · B 42
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