Hex Color #B308FA - Custom Color
Color Codes
HEX
#B308FA
RGB
rgb(179, 8, 250)
HSL
hsl(282, 96%, 51%)
CMYK
cmyk(28%, 97%, 0%, 2%)
HSV
hsv(282, 97%, 98%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 4.85:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 4.33: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: #B308FA;
color: #B308FA;
border-color: #B308FA;
}
Tailwind CSS (with arbitrary values)
bg-[#B308FA]
text-[#B308FA]
border-[#B308FA]
// Example usage:
<div className="bg-[#B308FA]">