CSS named color
BlueViolet Color Code
BlueViolet is a medium, vivid purple with the hex code #8A2BE2. In RGB it is rgb(138, 43, 226), in HSL hsl(271, 76%, 53%) and in CMYK cmyk(39%, 81%, 0%, 11%).
Color values
In CSS you can write it as the keyword blueviolet.
White text on BlueViolet has a contrast ratio of 5.96:1 and black text 3.52:1, so white text is the more readable choice.
The closest Tailwind CSS color is Purple 600 (#9333EA).
Use BlueViolet in CSS
.element {
color: blueviolet;
background-color: #8a2be2;
border-color: rgb(138, 43, 226);
} Tints and shades of BlueViolet
Ten steps from light to dark at the same hue. Click any swatch to copy it.
Colors that go with BlueViolet
Color-wheel harmonies built from #8A2BE2. Click a swatch to copy it or open the set in the color wheel.
Split complementary
Open in color wheelA base plus the two neighbors of its complement — contrast with less tension.
Text contrast on BlueViolet
Colors similar to BlueViolet
Closest CSS named colors
Closest traditional Chinese colors
Closest Tailwind colors
Palettes with similar colors
Questions about BlueViolet
What is the hex code for BlueViolet?
The hex code for BlueViolet is #8A2BE2. Its RGB value is rgb(138, 43, 226) and its HSL value is hsl(271, 76%, 53%).
What colors go with BlueViolet?
The complementary color of BlueViolet is #84E22C. For a softer scheme try the analogous colors #2F2CE2 and #E22CDF; for a balanced three-color scheme use the triadic colors #E28A2C and #2CE28A.
Is BlueViolet readable as a text color?
On a white background BlueViolet has a contrast ratio of 5.96:1, which passes WCAG AA for normal text (4.5:1). On black it reaches 3.52:1.