Hex Color #CFA1E8 - Custom Color

Color Codes

HEX
#CFA1E8
RGB
rgb(207, 161, 232)
HSL
hsl(279, 61%, 77%)
CMYK
cmyk(11%, 31%, 0%, 9%)
HSV
hsv(279, 31%, 91%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

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

Tailwind CSS (with arbitrary values)

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