Hex Color #AF275C - Custom Color
Color Codes
HEX
#AF275C
RGB
rgb(175, 39, 92)
HSL
hsl(337, 64%, 42%)
CMYK
cmyk(0%, 78%, 47%, 31%)
HSV
hsv(337, 78%, 69%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 6.43:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 3.27:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Recommended Text Color
For best readability on this background color, use white text.
Similar Colors
Color in Use
Card with colored border
Background with 20% opacity
CSS Code
.element {
background-color: #AF275C;
color: #AF275C;
border-color: #AF275C;
}
Tailwind CSS (with arbitrary values)
bg-[#AF275C]
text-[#AF275C]
border-[#AF275C]
// Example usage:
<div className="bg-[#AF275C]">