Hex Color #E2AFFC - Custom Color

Color Codes

HEX
#E2AFFC
RGB
rgb(226, 175, 252)
HSL
hsl(280, 93%, 84%)
CMYK
cmyk(10%, 31%, 0%, 1%)
HSV
hsv(280, 31%, 99%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

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

Tailwind CSS (with arbitrary values)

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