Hex Color #AF7EB4 - Custom Color
Color Codes
HEX
#AF7EB4
RGB
rgb(175, 126, 180)
HSL
hsl(294, 26%, 60%)
CMYK
cmyk(3%, 30%, 0%, 29%)
HSV
hsv(294, 30%, 71%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 3.25:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 6.47:1
Pass - 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: #AF7EB4;
color: #AF7EB4;
border-color: #AF7EB4;
}
Tailwind CSS (with arbitrary values)
bg-[#AF7EB4]
text-[#AF7EB4]
border-[#AF7EB4]
// Example usage:
<div className="bg-[#AF7EB4]">