Hex Color #AF82DE - Custom Color
Color Codes
HEX
#AF82DE
RGB
rgb(175, 130, 222)
HSL
hsl(269, 58%, 69%)
CMYK
cmyk(21%, 41%, 0%, 13%)
HSV
hsv(269, 41%, 87%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 2.97:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 7.07: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: #AF82DE;
color: #AF82DE;
border-color: #AF82DE;
}
Tailwind CSS (with arbitrary values)
bg-[#AF82DE]
text-[#AF82DE]
border-[#AF82DE]
// Example usage:
<div className="bg-[#AF82DE]">