Hex Color #AF9CEC - Custom Color

Color Codes

HEX
#AF9CEC
RGB
rgb(175, 156, 236)
HSL
hsl(254, 68%, 77%)
CMYK
cmyk(26%, 34%, 0%, 7%)
HSV
hsv(254, 34%, 93%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

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

Tailwind CSS (with arbitrary values)

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