Blueviolet colour (#8A2BE2)
Blueviolet is medium a purple with hex code #8A2BE2, one of the 148 named colours every browser understands, so you can write color: ${name} directly in CSS. In RGB it is 138, 43, 226; in HSL 271°, 76%, 53%. Use the tool to explore shades and harmonies.
How to use the Blueviolet colour
- The colour is pre-filled; click Explore to see all formats, shades and harmonies.
- Edit the value to try a variation.
- Copy the code you need.
Blueviolet in every format
| Format | Value |
|---|---|
| HEX | #8A2BE2 |
| RGB | rgb(138, 43, 226) |
| RGB (0–1) | 0.541, 0.169, 0.886 |
| HSL | hsl(271, 76%, 53%) |
| CMYK (approx.) | 39%, 81%, 0%, 11% |
| CSS | color: blueviolet; |
Shades and tints of Blueviolet
Same hue and saturation, lightness from 90% to 10%:
#e6d2f9 | #cda5f3 | #b478ed | #9c4be7 | #831fe0 | #6918b4 | #4e1287 | #340c5a | #1a062d |
Colours that go with Blueviolet
| Harmony | Colours | |
|---|---|---|
| Complementary | #84e22c | |
| Triadic | #e28a2c | #2ce28a |
| Analogous | #e22cdf | #2f2ce2 |
Similar named colours
The closest CSS named colours by RGB distance, useful when you need a keyword instead of a hex code or want a near match:
| Colour | HEX | Difference |
|---|---|---|
| darkorchid | #9932cc | very close |
| darkviolet | #9400d3 | close |
| slateblue | #6a5acd | close |
| mediumslateblue | #7b68ee | close |
| mediumorchid | #ba55d3 | close |
Accessibility
Contrast ratio of Blueviolet against white is 5.96:1 (passes WCAG AA for normal text) and against black 3.52:1 (fails). Use Blueviolet for text on white backgrounds.
Frequently asked questions
What is the hex code for Blueviolet?
#8A2BE2.
What is Blueviolet in RGB?
rgb(138, 43, 226).
What colour is complementary to Blueviolet?
#84e22c, directly opposite on the colour wheel.
Privacy
This tool runs entirely inside your browser using WebAssembly and the Canvas/File APIs. Your files are never uploaded to ToolFlint or any third party; you can verify this in your browser's network tab or by switching to airplane mode after the page loads. Read how we process files.
Last updated 2026-09-23.