Hex Color #B297BC - Custom Color
Color Codes
HEX
#B297BC
RGB
rgb(178, 151, 188)
HSL
hsl(284, 22%, 66%)
CMYK
cmyk(5%, 20%, 0%, 26%)
HSV
hsv(284, 20%, 74%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 2.61:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 8.05: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: #B297BC;
color: #B297BC;
border-color: #B297BC;
}
Tailwind CSS (with arbitrary values)
bg-[#B297BC]
text-[#B297BC]
border-[#B297BC]
// Example usage:
<div className="bg-[#B297BC]">