Hex Color #B240CE - Custom Color
Color Codes
HEX
#B240CE
RGB
rgb(178, 64, 206)
HSL
hsl(288, 59%, 53%)
CMYK
cmyk(14%, 69%, 0%, 19%)
HSV
hsv(288, 69%, 81%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 4.65:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 4.52: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: #B240CE;
color: #B240CE;
border-color: #B240CE;
}
Tailwind CSS (with arbitrary values)
bg-[#B240CE]
text-[#B240CE]
border-[#B240CE]
// Example usage:
<div className="bg-[#B240CE]">