Hex Color #AFA7FF - Custom Color
Color Codes
HEX
#AFA7FF
RGB
rgb(175, 167, 255)
HSL
hsl(245, 100%, 83%)
CMYK
cmyk(31%, 35%, 0%, 0%)
HSV
hsv(245, 35%, 100%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 2.14:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 9.79: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: #AFA7FF;
color: #AFA7FF;
border-color: #AFA7FF;
}
Tailwind CSS (with arbitrary values)
bg-[#AFA7FF]
text-[#AFA7FF]
border-[#AFA7FF]
// Example usage:
<div className="bg-[#AFA7FF]">