Hex Color #AF02BF - Custom Color
Color Codes
HEX
#AF02BF
RGB
rgb(175, 2, 191)
HSL
hsl(295, 98%, 38%)
CMYK
cmyk(8%, 99%, 0%, 25%)
HSV
hsv(295, 99%, 75%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 5.86:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 3.58: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: #AF02BF;
color: #AF02BF;
border-color: #AF02BF;
}
Tailwind CSS (with arbitrary values)
bg-[#AF02BF]
text-[#AF02BF]
border-[#AF02BF]
// Example usage:
<div className="bg-[#AF02BF]">