Hex Color #B8128D - Custom Color
Color Codes
HEX
#B8128D
RGB
rgb(184, 18, 141)
HSL
hsl(316, 82%, 40%)
CMYK
cmyk(0%, 90%, 23%, 28%)
HSV
hsv(316, 90%, 72%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 5.98:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 3.51: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: #B8128D;
color: #B8128D;
border-color: #B8128D;
}
Tailwind CSS (with arbitrary values)
bg-[#B8128D]
text-[#B8128D]
border-[#B8128D]
// Example usage:
<div className="bg-[#B8128D]">