Hex Color #AF7EFB - Custom Color
Color Codes
HEX
#AF7EFB
RGB
rgb(175, 126, 251)
HSL
hsl(264, 94%, 74%)
CMYK
cmyk(30%, 50%, 0%, 2%)
HSV
hsv(264, 50%, 98%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 2.92:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 7.20: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: #AF7EFB;
color: #AF7EFB;
border-color: #AF7EFB;
}
Tailwind CSS (with arbitrary values)
bg-[#AF7EFB]
text-[#AF7EFB]
border-[#AF7EFB]
// Example usage:
<div className="bg-[#AF7EFB]">