Hex Color #AF96A1 - Custom Color
Color Codes
HEX
#AF96A1
RGB
rgb(175, 150, 161)
HSL
hsl(334, 14%, 64%)
CMYK
cmyk(0%, 14%, 8%, 31%)
HSV
hsv(334, 14%, 69%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 2.73:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 7.70:1
Pass - WCAG AA (Normal Text)
Pass - 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: #AF96A1;
color: #AF96A1;
border-color: #AF96A1;
}
Tailwind CSS (with arbitrary values)
bg-[#AF96A1]
text-[#AF96A1]
border-[#AF96A1]
// Example usage:
<div className="bg-[#AF96A1]">