Hex Color #E2AFE7 - Custom Color

Color Codes

HEX
#E2AFE7
RGB
rgb(226, 175, 231)
HSL
hsl(295, 54%, 80%)
CMYK
cmyk(2%, 24%, 0%, 9%)
HSV
hsv(295, 24%, 91%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

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

Tailwind CSS (with arbitrary values)

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