Hex Color #A342CA - Custom Color
Color Codes
HEX
#A342CA
RGB
rgb(163, 66, 202)
HSL
hsl(283, 56%, 53%)
CMYK
cmyk(19%, 67%, 0%, 21%)
HSV
hsv(283, 67%, 79%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 5.01:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 4.19:1
Fail - 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: #A342CA;
color: #A342CA;
border-color: #A342CA;
}
Tailwind CSS (with arbitrary values)
bg-[#A342CA]
text-[#A342CA]
border-[#A342CA]
// Example usage:
<div className="bg-[#A342CA]">