Hex Color #CF9DDD - Custom Color
Color Codes
HEX
#CF9DDD
RGB
rgb(207, 157, 221)
HSL
hsl(287, 48%, 74%)
CMYK
cmyk(6%, 29%, 0%, 13%)
HSV
hsv(287, 29%, 87%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 2.21:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 9.52: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: #CF9DDD;
color: #CF9DDD;
border-color: #CF9DDD;
}
Tailwind CSS (with arbitrary values)
bg-[#CF9DDD]
text-[#CF9DDD]
border-[#CF9DDD]
// Example usage:
<div className="bg-[#CF9DDD]">