Hex Color #E7B4FA - Custom Color

Color Codes

HEX
#E7B4FA
RGB
rgb(231, 180, 250)
HSL
hsl(284, 88%, 84%)
CMYK
cmyk(8%, 28%, 0%, 2%)
HSV
hsv(284, 28%, 98%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

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

Recommended Text Color

For best readability on this background color, use black text.

Similar Colors

Color in Use

Card with colored border

Background with 20% opacity

CSS Code

.element {
background-color: #E7B4FA;
color: #E7B4FA;
border-color: #E7B4FA;
}

Tailwind CSS (with arbitrary values)

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