Hex Color #BA1FEC - Custom Color

Color Codes

HEX
#BA1FEC
RGB
rgb(186, 31, 236)
HSL
hsl(285, 84%, 52%)
CMYK
cmyk(21%, 87%, 0%, 7%)
HSV
hsv(285, 87%, 93%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

Contrast Ratio: 4.50:1
Fail - 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: #BA1FEC;
color: #BA1FEC;
border-color: #BA1FEC;
}

Tailwind CSS (with arbitrary values)

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