Hex Color #645FFE - Custom Color
Color Codes
HEX
#645FFE
RGB
rgb(100, 95, 254)
HSL
hsl(242, 99%, 68%)
CMYK
cmyk(61%, 63%, 0%, 0%)
HSV
hsv(242, 63%, 100%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 4.56:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 4.61: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: #645FFE;
color: #645FFE;
border-color: #645FFE;
}
Tailwind CSS (with arbitrary values)
bg-[#645FFE]
text-[#645FFE]
border-[#645FFE]
// Example usage:
<div className="bg-[#645FFE]">