#5F3366

A dark, moderate magenta closely aligning with Darkslateblue.

About #5F3366

The hex code #5F3366 represents a beautifully specific shade of magenta. Designers often compare it to the standard color Darkslateblue. In the RGB color space, it consists of 95 red, 51 green, and 102 blue.

While screens use RGB, printing presses rely on Cyan, Magenta, Yellow, and Key (black). This specific hue requires a mix of 7% C, 50% M, 0% Y, and 60% K. With a hue angle of 291.8 degrees, it sits comfortably in the magenta spectrum.

From a UX and accessibility standpoint, contrast is paramount. Because it is a dark color, it is generally recommended to use #FFFFFF text. You can view the detailed AAA and AA pass/fail metrics in the table below.

Color Space Conversions

HEX#5F3366
RGB95, 51, 102
HSL291.8°, 33.3%, 30.0%
CMYK7%, 50%, 0%, 60%
HSV291.8°, 50.0%, 40.0%
LAB28.8, 28.7, -21.9
XYZ8.3, 5.8, 13.2
Decimal6239078

Color Harmonies

Complementary

Analogous

Triadic

Tints, Shades & Tones

Tints (Adding White)

Shades (Adding Black)

WCAG Contrast Accessibility

9.76:1
Text on #FFFFFF
AAA
2.15:1
Text on #000000
FAIL
9.33:1
Text on #F8FAFC
AAA
1.83:1
Text on #0F172A
FAIL

CSS Implementation

.bg-color { background-color: #5F3366; }
.text-color { color: #5F3366; }
.border-color { border: 2px solid #5F3366; }

Similar Colors

Darkslateblue
#483D8B