Hex Color #B40267 - Custom Color
Color Codes
HEX
#B40267
RGB
rgb(180, 2, 103)
HSL
hsl(326, 98%, 36%)
CMYK
cmyk(0%, 99%, 43%, 29%)
HSV
hsv(326, 99%, 71%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 6.68:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 3.15: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: #B40267;
color: #B40267;
border-color: #B40267;
}
Tailwind CSS (with arbitrary values)
bg-[#B40267]
text-[#B40267]
border-[#B40267]
// Example usage:
<div className="bg-[#B40267]">