#AF0042
A dark, vivid magenta closely aligning with Brown.
About #AF0042
The hex code #AF0042 represents a beautifully specific shade of magenta. It is closely associated with the named CSS color Brown. To achieve this exact tint on a monitor, you would use an RGB mix of 175, 0, and 66.
While screens use RGB, printing presses rely on Cyan, Magenta, Yellow, and Key (black). The color uses 0% Cyan, 100% Magenta, 62% Yellow, and 31% Black. With a hue angle of 337.4 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#AF0042
RGB175, 0, 66
HSL337.4°, 100.0%, 34.3%
CMYK0%, 100%, 62%, 31%
HSV337.4°, 100.0%, 68.6%
LAB36.9, 62.4, 15.1
XYZ18.7, 9.5, 6.0
Decimal11468866
Color Harmonies
Tints, Shades & Tones
Tints (Adding White)
Shades (Adding Black)
WCAG Contrast Accessibility
7.24:1
Text on #FFFFFF
AAA
2.90:1
Text on #000000
FAIL
6.92:1
Text on #F8FAFC
AA
2.47:1
Text on #0F172A
FAIL
CSS Implementation
.bg-color {
background-color: #AF0042;
}
.text-color {
color: #AF0042;
}
.border-color {
border: 2px solid #AF0042;
}