#C51D7C
A medium, vivid magenta closely aligning with Mediumvioletred.
About #C51D7C
Visually, #C51D7C is defined as a vivid magenta. It is closely associated with the named CSS color Mediumvioletred. To achieve this exact tint on a monitor, you would use an RGB mix of 197, 29, and 124.
Translating this color to physical media requires the CMYK color model. This specific hue requires a mix of 0% C, 85% M, 37% Y, and 23% K. This makes it a relatively light color when applied to physical surfaces.
Ensuring your text is legible against this background is a key part of web design. Because it is a medium 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#C51D7C
RGB197, 29, 124
HSL326.1°, 74.3%, 44.3%
CMYK0%, 85%, 37%, 23%
HSV326.1°, 85.3%, 77.3%
LAB44.5, 68.2, -10.1
XYZ27.1, 14.2, 20.4
Decimal12918140
Color Harmonies
Tints, Shades & Tones
Tints (Adding White)
Shades (Adding Black)
WCAG Contrast Accessibility
5.47:1
Text on #FFFFFF
AA
3.84:1
Text on #000000
AA Large
5.23:1
Text on #F8FAFC
AA
3.27:1
Text on #0F172A
AA Large
CSS Implementation
.bg-color {
background-color: #C51D7C;
}
.text-color {
color: #C51D7C;
}
.border-color {
border: 2px solid #C51D7C;
}