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.

✓ Runs in your browser — nothing uploaded Free, no sign-upNo watermark

How to use the Blueviolet colour

  1. The colour is pre-filled; click Explore to see all formats, shades and harmonies.
  2. Edit the value to try a variation.
  3. Copy the code you need.

Blueviolet in every format

FormatValue
HEX#8A2BE2
RGBrgb(138, 43, 226)
RGB (0–1)0.541, 0.169, 0.886
HSLhsl(271, 76%, 53%)
CMYK (approx.)39%, 81%, 0%, 11%
CSScolor: 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

HarmonyColours
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:

ColourHEXDifference
darkorchid #9932ccvery close
darkviolet #9400d3close
slateblue #6a5acdclose
mediumslateblue #7b68eeclose
mediumorchid #ba55d3close

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.