Hex Color #B7158F - Custom Color

Color Codes

HEX
#B7158F
RGB
rgb(183, 21, 143)
HSL
hsl(315, 79%, 40%)
CMYK
cmyk(0%, 89%, 22%, 28%)
HSV
hsv(315, 89%, 72%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

Contrast Ratio: 5.97:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)

Text on Black Background

Sample Text

Contrast Ratio: 3.52: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: #B7158F;
color: #B7158F;
border-color: #B7158F;
}

Tailwind CSS (with arbitrary values)

bg-[#B7158F]
text-[#B7158F]
border-[#B7158F]
// Example usage:
<div className="bg-[#B7158F]">