Hex Color #C171DA - Custom Color

Color Codes

HEX
#C171DA
RGB
rgb(193, 113, 218)
HSL
hsl(286, 59%, 65%)
CMYK
cmyk(11%, 48%, 0%, 15%)
HSV
hsv(286, 48%, 85%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

Contrast Ratio: 6.64:1
Pass - WCAG AA (Normal Text)
Fail - 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: #C171DA;
color: #C171DA;
border-color: #C171DA;
}

Tailwind CSS (with arbitrary values)

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