Hex Color #CC97DB - Custom Color

Color Codes

HEX
#CC97DB
RGB
rgb(204, 151, 219)
HSL
hsl(287, 49%, 73%)
CMYK
cmyk(7%, 31%, 0%, 14%)
HSV
hsv(287, 31%, 86%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

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

Tailwind CSS (with arbitrary values)

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