Skip to content

Blue Violet (#8A2BE2)

The hex code for Blue Violet is #8A2BE2. It is rgb(138, 43, 226) in RGB, hsl(271, 76%, 53%) in HSL, and about cmyk(39%, 81%, 0%, 11%) in CMYK — a mid-tone purple. White text is the more readable choice on this background.

#8A2BE2
HEX#8A2BE2
RGBrgb(138, 43, 226)
HSLhsl(271, 76%, 53%)
HSVhsv(271, 81%, 89%)
CMYKcmyk(39%, 81%, 0%, 11%)
OKLCHoklch(53.4% 0.25 301.4)
LABlab(41.21% 63.01 -75.96)
LCHlch(41.21% 98.69 309.68)

Colors Closest to Blue Violet

Blue Violet is a registered color name. These are the named colors nearest to it, measured as CIE76 distance in CIELAB — a perceptual scale, so the ordering matches what the eye sees rather than how close the raw RGB numbers happen to sit.

Browse the full index of named colors A-Z or every purple in the library.

#8A2BE2 Channel Values

How Blue Violet breaks down in each color model. Hue is measured in degrees around the color wheel; saturation, lightness, and the CMYK inks are percentages.

ModelChannelsNotes
RGBR 138 · G 43 · B 2268-bit channels as sent to the display
HSLH 271° · S 76% · L 53%Easiest model for building lighter and darker variants
HSVH 271° · S 81% · V 89%Matches the picker in most design tools
CMYKC 39% · M 81% · Y 0% · K 11%Approximate ink mix; confirm with an ICC profile before printing
Luminance5.96:1 vs white · 3.52:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a Blue Violet background. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. Contrast is one check, not a full accessibility review.

TextWhite text5.96:1AA normal AA large AAA normal
Fails AABlack text3.52:1AA normal AA large AAA normal

Need a specific ratio against another background? Open #8A2BE2 in the contrast checker.

Colors That Go With Blue Violet

Pairings derived from color-wheel relationships. The complementary color sits opposite Blue Violet; analogous colors sit beside it; triadic and split-complementary sets spread evenly around the wheel. Select any swatch for its own breakdown.

Base
Complementary
Analogous
Analogous
Triadic
Triadic
Split comp.
Split comp.

Tints & Shades of Blue Violet

Lighter tints and darker shades built by moving the lightness channel while holding hue and saturation, which is what you want for hover states, backgrounds, and text variants.

Tints

Shades

Want a full 50-950 ramp with semantic roles? Generate design tokens from #8A2BE2.

How Blue Violet Looks with Color Vision Deficiency

Simulated with the Viénot, Brettel & Mollon LMS projection model. Anomalous types are rendered as partial versions of the matching dichromacy, which is an approximation rather than a per-person clinical model.

Typical#8A2BE2
Protanopia#4747E2
Protanomaly#683EE2
Deuteranopia#5959E1
Deuteranomaly#704BE1
Tritanopia#6F6060
Tritanomaly#7B50A5
Achromatopsia#646464

Test a full palette in the color blindness simulator.

Using #8A2BE2 in Code

Copy-ready declarations for the places this color usually ends up.

CSS custom property--blue-violet: #8A2BE2;
CSS backgroundbackground-color: #8A2BE2;
Tailwind configcolors: { 'blue-violet': '#8A2BE2' }
SwiftUIColor(red: 0.541, green: 0.169, blue: 0.886)
Android XML<color name="blue_violet">#8A2BE2</color>
SVG fillfill="#8A2BE2"

More Purple Colors

Blue Violet sits in the purple family. These are its neighbours across that family's full range, each with its own breakdown.

#8A2BE2 Frequently Asked Questions

What is the hex code for Blue Violet?

The hex code for Blue Violet is #8A2BE2. That is rgb(138, 43, 226) in RGB, hsl(271, 76%, 53%) in HSL, and approximately cmyk(39%, 81%, 0%, 11%) in CMYK.

What is the RGB value of #8A2BE2?

#8A2BE2 is rgb(138, 43, 226) — red 138, green 43, and blue 226 on the 0-255 scale.

What is the CMYK value of #8A2BE2?

#8A2BE2 converts to approximately cmyk(39%, 81%, 0%, 11%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #8A2BE2 be black or white?

White text is the more readable choice. #8A2BE2 scores 5.96:1 against white and 3.52:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.

Is BlueViolet a CSS named color?

Yes. BlueViolet is one of the CSS named colors, so you can write color: blueviolet instead of the hex code.

Open Blue Violet in a Tool

Keep exploring: every purple in the color library, the guide to shades of purple, or the full color library.