Hex Color #D166EA - Custom Color

Color Codes

HEX
#D166EA
RGB
rgb(209, 102, 234)
HSL
hsl(289, 76%, 66%)
CMYK
cmyk(11%, 56%, 0%, 8%)
HSV
hsv(289, 56%, 92%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

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

Tailwind CSS (with arbitrary values)

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