Hex Color #D157FA - Custom Color
Color Codes
HEX
#D157FA
RGB
rgb(209, 87, 250)
HSL
hsl(285, 94%, 66%)
CMYK
cmyk(16%, 65%, 0%, 2%)
HSV
hsv(285, 65%, 98%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 3.25:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 6.45: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: #D157FA;
color: #D157FA;
border-color: #D157FA;
}
Tailwind CSS (with arbitrary values)
bg-[#D157FA]
text-[#D157FA]
border-[#D157FA]
// Example usage:
<div className="bg-[#D157FA]">