Hex Color #AF5FCD - Custom Color

Color Codes

HEX
#AF5FCD
RGB
rgb(175, 95, 205)
HSL
hsl(284, 52%, 59%)
CMYK
cmyk(15%, 54%, 0%, 20%)
HSV
hsv(284, 54%, 80%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

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

Tailwind CSS (with arbitrary values)

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