Hex Color #B97EDA - Custom Color

Color Codes

HEX
#B97EDA
RGB
rgb(185, 126, 218)
HSL
hsl(278, 55%, 67%)
CMYK
cmyk(15%, 42%, 0%, 15%)
HSV
hsv(278, 42%, 85%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

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

Tailwind CSS (with arbitrary values)

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