Hex Color #AF7CCF - Custom Color
Color Codes
HEX
#AF7CCF
RGB
rgb(175, 124, 207)
HSL
hsl(277, 46%, 65%)
CMYK
cmyk(15%, 40%, 0%, 19%)
HSV
hsv(277, 40%, 81%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 3.18:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 6.61: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: #AF7CCF;
color: #AF7CCF;
border-color: #AF7CCF;
}
Tailwind CSS (with arbitrary values)
bg-[#AF7CCF]
text-[#AF7CCF]
border-[#AF7CCF]
// Example usage:
<div className="bg-[#AF7CCF]">