Hex Color #AF4EFA - Custom Color

Color Codes

HEX
#AF4EFA
RGB
rgb(175, 78, 250)
HSL
hsl(274, 95%, 64%)
CMYK
cmyk(30%, 69%, 0%, 2%)
HSV
hsv(274, 69%, 98%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

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

Tailwind CSS (with arbitrary values)

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