Skip to main content

Blue Violet

#8A2BE2·purple family·WCAG AA

Tints & Shades

50

100

200

300

400

500

600

700

800

900

Scale from white (50) through Blue Violet (500) to black (900), interpolated in Lab color space.

Color Values

HEX
#8A2BE2
RGB
rgb(138, 43, 226)
HSL
hsl(271, 76%, 53%)
OKLCH
oklch(0.534 0.25 301)
CMYK
cmyk(39%, 81%, 0%, 11%)
Luminance:0.1262
CSS var:--color-blue-violet
Tailwind:bg-[#8A2BE2]

Accessibility

Score: 54/100

On White (#FFF)

5.96:1

AA

On Black (#000)

3.52:1

AA Large

On Light Gray (#F5F5F5)

5.47:1

AA

Best text color on this background:

white5.96:1
Open in Contrast Checker →

Design Applications

Background

background-color: #8A2BE2

Text Color

color: #8A2BE2

bg-[#8A2BE2] text-[#FFFFFF]

Accent border card component

border-left: 4px solid #8A2BE2

Color Meaning & Psychology

Purple was among the most expensive dyes in history — extracted from murex snails, requiring thousands to color a single garment. This scarcity created the enduring association with royalty, power, and luxury. Purple is rare in nature, which is why it feels special and mysterious. Red-purples feel passionate and romantic; blue-purples feel calm and contemplative; mid-purples feel creative and spiritual. Purple activates both warm (red) and cool (blue) emotional responses simultaneously, creating an ambiguity that different cultures interpret differently — wisdom in Asia, mourning in parts of Europe, magic in fantasy contexts, lavish excess in baroque design. At medium lightness, it is the most versatile tone of this hue family — readable as text on light backgrounds, yet vibrant enough as a visual accent.

Industry Usage

Common contexts and industries where Blue Violet is applied in professional design.

  • Luxury beauty and cosmetics brands
  • Premium consumer products and packaging
  • Spiritual, wellness, and meditation apps
  • Creative agencies and design studios
  • Entertainment and gaming (magic, fantasy)
  • Anti-aging and prestige skincare
  • Confectionery and indulgence brands
  • Academic institutions emphasizing wisdom

Accessibility Considerations

Normal Text

Passes AA

4.5:1 minimum required

Large Text

Passes AA Large

3:1 minimum required

UI Components

Meets 1.4.11

3:1 for non-text UI

Blue Violet is a dark color. Use white (#FFFFFF) text on top of it for maximum readability (5.96:1). Avoid small black text on this background.

CSS & Code Examples

Background

background-color: #8A2BE2;

Text

color: #8A2BE2;

Border

border: 2px solid #8A2BE2;

Box Shadow

box-shadow: 0 4px 20px #8A2BE240;

Gradient

background: linear-gradient(135deg, #8A2BE2, #c05fff);

Tailwind-style

--color-blue-violet: #8A2BE2;

Tailwind CSS Utilities

Use arbitrary value syntax in Tailwind CSS to apply Blue Violet without a custom config.

Background

bg-[#8A2BE2]

Text

text-[#8A2BE2]

Border

border-[#8A2BE2]

Ring

ring-[#8A2BE2]

Fill

fill-[#8A2BE2]

From (gradient)

from-[#8A2BE2]

Via (gradient)

via-[#8A2BE2]

To (gradient)

to-[#8A2BE2]

Design Tokens

Ready-to-use Blue Violet design token in CSS custom properties, SCSS, Tailwind v3/v4, and JSON formats.

CSS Custom Properties

:root {
  --color-blue-violet: #8A2BE2;
  --color-blue-violet-rgb: 138, 43, 226;
  --color-blue-violet-hsl: 271, 76%, 53%;
}

SCSS Variables

$color-blue-violet: #8A2BE2;
$color-blue-violet-rgb: 138, 43, 226;
$color-blue-violet-hsl: 271, 76%, 53%;

Tailwind v3 Config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'blue-violet': '#8A2BE2',
      },
    },
  },
};

Tailwind v4 (@theme)

/* tailwind.css */
@theme {
  --color-blue-violet: #8A2BE2;
}

JSON Design Token (W3C format)

{
  "blue-violet": {
    "value": "#8A2BE2",
    "type": "color",
    "description": "Blue Violet — #8A2BE2"
  }
}

What Does Blue Violet Mean? Color Psychology & Cultural Symbolism

Blue Violet (#8A2BE2) is the color of liminal spaces—the purple twilight, the purple of ancient dyes, the purple of futures not yet written. Its medium quality at 53% lightness positions it between accessibility and aspiration, rendering creativity in a register that feels both earned and inviting.

  • Across color psychology research, purple consistently tests high for "luxury" associations, making Blue Violet a reliable vehicle for creativity in cross-demographic audiences.
  • Brand designers draw on purple-family tones to project distinction and wisdom—values that Blue Violet communicates in a medium key.
  • At 76% saturation, Blue Violet reads as moderately saturated—neither overwhelming nor passive, landing in the luxury, creativity, mystery, and wisdom zone with measured confidence.
  • Blue Violet's medium lightness (53%) shifts its psychological register: a balanced mid-tone that embodies luxury, creativity, mystery, and wisdom at its most direct.

Blue Violet is a commitment color—use it fully or not at all. Half measures produce neither luxury nor creativity.

How to Use Blue Violet in Design: Applications, Pairings & Best Practices

Blue Violet rewards bold usage. Timid deployment—a small accent in an otherwise neutral palette—undersells its power. Used with commitment, it creates the kind of brand distinction that no other hue achieves.

  • Avoid: mainstream corporate environments where it reads as unconventional, food packaging (no natural purple vegetables beyond eggplant and berries), and mass-market consumer products where premium positioning is not intended.
  • Color harmonies: Blue Violet's complementary color creates a high-energy split ideal for promotional design; its analogous palette (±30° hue) builds cohesive, monochromatic sophistication.
  • Proportional use: Blue Violet's moderately saturated saturation (76%) means small applications—accents, highlights, icons—deliver maximum impact without visual fatigue. Reserve large-scale use for intentional brand moments.
  • As a dark tone, Blue Violet creates maximum contrast with white and light neutrals—excellent for creating premium dark-mode sections, bold headers, and high-drama brand moments
  • Typography: Blue Violet works as a background behind white text but requires careful sizing—test at intended heading and body sizes before finalizing.

Blue Violet is a commitment color—use it fully or not at all. Half measures produce neither luxury nor creativity.

Blue Violet Accessibility: WCAG Contrast Ratios, Color Blindness & Inclusive Design

Blue Violet (#8A2BE2) reaches 5.96:1 contrast with white text—meeting WCAG 2.1 AA minimum of 4.5:1 for normal text and 3:1 for large text. It clears standard production accessibility requirements. Relative luminance: 12.6%.

  • As text on white (#FFFFFF): 5.96:1 — AA ✓
  • As text on black (#000000): 3.52:1 — AA (large text only)
  • Best text color on Blue Violet background: White (#FFFFFF) at 5.96:1
  • WCAG 2.1 luminance: 12.6% — low luminance (dark)—it provides strong contrast for white and light overlaid text, functioning well as a background in dark-mode and header contexts
  • Blue Violet qualifies for normal body text and all larger sizes (AA).
  • Color blindness consideration: tritanopia (blue-yellow color blindness, ~0.003% of population) may affect how this color reads. While rare, for maximum accessibility supplement color signals with text or icon indicators in critical states.

Always verify Blue Violet at its final intended size and weight using a real contrast checker—font weight and rendering environment affect perceived legibility beyond what raw ratios capture.

Blue Violet in Industry: Branding, Design & Market Applications

Blue Violet's brand positioning falls squarely in the territory of luxury, creativity, mystery, and wisdom. Industry data supports its strongest performance in beauty & cosmetics, luxury goods, creative services categories, where the moderately saturated saturation calibrates the message at a medium, considered level.

  • Beauty & Cosmetics: Purple is the second most common color in beauty branding, projecting luxury, femininity, and transformative aspiration. It signals that a product is special, premium, and designed for moments of indulgence. (examples: Glossier, Fenty Beauty, Rare Beauty) Lavender tones work for accessible beauty; deep violet and plum for luxury skincare and perfume.
  • Creative & Agency Services: Creative studios, design agencies, and advertising firms use purple to signal imagination, unconventional thinking, and creative authority. It differentiates them from the blue-dominated corporate world while retaining enough gravitas to command respect. Works best when paired with a strong neutral (black, charcoal, or cream) to prevent it from reading as whimsical.
  • Gaming & Entertainment: Purple dominates gaming, streaming, and digital entertainment branding because it signals the threshold between the ordinary world and an imaginative one. It's the color of portals, magic systems, and premium digital experiences. (examples: Spotify, Netflix, Hulu) Twitch's purple brand has made the color synonymous with live streaming culture—worth considering in adjacent spaces.
  • Brand positioning: Blue Violet is best suited for brands projecting luxury, creativity, imagination. Categories outside this positioning—mainstream corporate environments where it reads as unconventional—tend to see weaker results.
  • Adjacent applications: Beyond primary industries, Blue Violet works effectively in premium branding, creative agency identities, beauty packaging—contexts where mystery serves a secondary but reinforcing role.

For marketers and brand strategists, Blue Violet is a commitment to luxury, creativity, mystery, and wisdom. Match it with industries that make that promise and it will pay dividends consistently.

Frequently Asked Questions

What is the hex code for Blue Violet?
The hex code for Blue Violet is #8A2BE2. Its RGB values are rgb(138, 43, 226) and its HSL values are hsl(271, 76%, 53%).
What does Blue Violet mean in design?
Purple was among the most expensive dyes in history — extracted from murex snails, requiring thousands to color a single garment. This scarcity created the enduring association with royalty, power, and luxury. Purple is rare in nature, which is why it feels special and mysterious. Red-purples feel passionate and romantic; blue-purples feel calm and contemplative; mid-purples feel creative and spiritual. Purple activates both warm (red) and cool (blue) emotional responses simultaneously, creating an ambiguity that different cultures interpret differently — wisdom in Asia, mourning in parts of Europe, magic in fantasy contexts, lavish excess in baroque design. At medium lightness, it is the most versatile tone of this hue family — readable as text on light backgrounds, yet vibrant enough as a visual accent.
Is Blue Violet WCAG accessible?
Blue Violet (#8A2BE2) passes WCAG AA on white with a 5.96:1 contrast ratio. Its overall accessibility score is 54/100.
What colors go well with Blue Violet?
Blue Violet pairs well with its complementary color Camo Green (#78866B). Analogous colors like Federal Blue and Han Purple also work harmoniously. Check the Color Harmonies section above for the full palette.
What is Blue Violet used for?
Blue Violet is commonly used for: Luxury beauty and cosmetics brands; Premium consumer products and packaging; Spiritual, wellness, and meditation apps; Creative agencies and design studios; Entertainment and gaming (magic, fantasy).
What are the CSS and Tailwind values for Blue Violet?
In CSS, use `color: #8A2BE2` or `background-color: #8A2BE2`. The CSS custom property is `--color-blue-violet: #8A2BE2`. In Tailwind CSS, use the arbitrary value class `bg-[#8A2BE2]` for backgrounds or `text-[#8A2BE2]` for text.