Hex Color #F2AFFA - Custom Color
Color Codes
HEX
#F2AFFA
RGB
rgb(242, 175, 250)
HSL
hsl(294, 88%, 83%)
CMYK
cmyk(3%, 30%, 0%, 2%)
HSV
hsv(294, 30%, 98%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 1.71:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 12.29:1
Pass - WCAG AA (Normal Text)
Pass - WCAG AAA (Normal Text)
Recommended Text Color
For best readability on this background color, use black text.
Similar Colors
Color in Use
Card with colored border
Background with 20% opacity
CSS Code
.element {
background-color: #F2AFFA;
color: #F2AFFA;
border-color: #F2AFFA;
}
Tailwind CSS (with arbitrary values)
bg-[#F2AFFA]
text-[#F2AFFA]
border-[#F2AFFA]
// Example usage:
<div className="bg-[#F2AFFA]">