Skip to content
PantoneTools
purple
CSS Named Colors

Blueviolet

blueviolet · #8A2BE2

HEX

#8A2BE2

RGB

rgb(138, 43, 226)

CMYK

cmyk(39%, 81%, 0%, 11%)

HSL

hsl(271, 76%, 53%)

LAB

lab(42.2, 69.8, -74.8)

What is Blueviolet?

Blueviolet is the blueviolet reference in the CSS Named Colors. Its sRGB value is #8A2BE2 (rgb 138, 43, 226). It sits in the purple family. The 147 named colors defined by the W3C CSS Color Module Level 4 specification — usable directly in CSS as keywords like 'crimson' or 'rebeccapurple'. See disclaimer for accuracy and trademark notes.

Accessibility

WCAG 2.1 contrast checks for Blueviolet as a background.

Black text on this color

Sample text · 3.52 : 1
AA Normal
AA Large
AAA Normal
AAA Large

White text on this color

Sample text · 5.96 : 1
AA Normal
AA Large
AAA Normal
AAA Large

Shades, tints & tonal scale of Blueviolet

An 11-step tonal scale derived from Blueviolet (#8A2BE2). Click any swatch to copy its HEX. Use these as a starting point for design tokens, hover states, and disabled states in a design system.

Copied #F6EEFD

50

#F6EEFD

#F6EEFD

Copied #ECDDFA

100

#ECDDFA

#ECDDFA

Copied #DABBF6

200

#DABBF6

#DABBF6

Copied #C595F1

300

#C595F1

#C595F1

Copied #A760E9

400

#A760E9

#A760E9

Copied #8A2BE2

500

#8A2BE2

#8A2BE2

Copied #7525C0

600

#7525C0

#7525C0

Copied #5A1C93

700

#5A1C93

#5A1C93

Copied #3E1366

800

#3E1366

#3E1366

Copied #230B39

900

#230B39

#230B39

Copied #11051B

950

#11051B

#11051B

Lighter tints (mixed with white)

Copied #A373E7

15%

#A373E7

Copied #B899EB

30%

#B899EB

Copied #CAB5F0

45%

#CAB5F0

Copied #DACDF4

60%

#DACDF4

Copied #E9E1F8

75%

#E9E1F8

Darker shades (mixed with black)

Copied #8027D2

15%

#8027D2

Copied #7523C1

30%

#7523C1

Copied #681EAD

45%

#681EAD

Copied #5A1996

60%

#5A1996

Copied #471279

75%

#471279

Color harmonies for Blueviolet

Classic color-theory harmonies derived from rotating the hue of Blueviolet. Use these to build accent palettes, brand systems, and accessible UI color pairings.

Complementary

180° opposite — strongest contrast

Copied #8A2BE2

#8A2BE2

#8A2BE2

Copied #84E22C

#84E22C

#84E22C

Triadic

Three colors 120° apart

Copied #8A2BE2

#8A2BE2

#8A2BE2

Copied #E28A2C

#E28A2C

#E28A2C

Copied #2CE28A

#2CE28A

#2CE28A

Analogous

Two neighbors ±30° on the wheel

Copied #2F2CE2

#2F2CE2

#2F2CE2

Copied #8A2BE2

#8A2BE2

#8A2BE2

Copied #E22CDF

#E22CDF

#E22CDF

Split-complementary

Base + two colors flanking its complement

Copied #8A2BE2

#8A2BE2

#8A2BE2

Copied #DFE22C

#DFE22C

#DFE22C

Copied #2CE22F

#2CE22F

#2CE22F

Tetradic

Two complementary pairs

Copied #8A2BE2

#8A2BE2

#8A2BE2

Copied #E22C84

#E22C84

#E22C84

Copied #84E22C

#84E22C

#84E22C

Copied #2CE28A

#2CE28A

#2CE28A

Square

Four colors evenly spaced 90° apart

Copied #8A2BE2

#8A2BE2

#8A2BE2

Copied #E22F2C

#E22F2C

#E22F2C

Copied #84E22C

#84E22C

#84E22C

Copied #2CDFE2

#2CDFE2

#2CDFE2

Blueviolet in every color space

Full conversion of Blueviolet across the color spaces designers and developers actually use — including OKLCH (the perceptually-uniform space that powers Tailwind v4 and CSS Color Module Level 4) and HWB.

HEX

#8A2BE2

RGB

rgb(138, 43, 226)

CMYK

cmyk(39%, 81%, 0%, 11%)

HSL

hsl(271, 76%, 53%)

HSV

hsv(271, 81%, 89%)

HWB

hwb(271 17% 11%)

CIE Lab

lab(42.2 69.8 -74.8)

OKLCH

oklch(53.4% 0.250 301.4)

XYZ (D65)

xyz(25.07, 12.62, 73.05)

Copy-ready code for Blueviolet

Drop-in snippets for CSS, Tailwind, Sass, iOS Swift, and Android XML. Click the copy button on any snippet to put it on your clipboard.

CSS

color: #8A2BE2;
background-color: #8A2BE2;

CSS variable

:root {
  --color-blueviolet: #8A2BE2;
}

Tailwind config

// tailwind.config.js
colors: {
  'blueviolet': '#8A2BE2',
}

Sass

$color-blueviolet: #8A2BE2;

Swift UIColor

UIColor(red: 0.541, green: 0.169, blue: 0.886, alpha: 1.0)

Android XML

<color name="blueviolet">#8A2BE2</color>

Closest match in every color system

The nearest Blueviolet equivalent in every other color system on this site, ranked by ΔE2000 perceptual distance. Useful when translating between design-system, web-standard, and industrial color references.

Closest in CSS Named Colors

Top 6 ΔE2000-closest entries within the same collection.

Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.

Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.

Copied #6C4675

RAL 4005

#6C4675

Blue lilac

Copied #924E7D

RAL 4008

#924E7D

Signal violet

Copied #7E8B92

RAL 7000

#7E8B92

Squirrel grey

Copied #A03472

RAL 4006

#A03472

Traffic purple

Copied #434B4D

RAL 7011

#434B4D

Iron grey

Copied #606E8C

RAL 5014

#606E8C

Pigeon blue

FAQ about Blueviolet

What is the HEX code for Blueviolet?

Blueviolet (blueviolet) has the HEX code #8A2BE2. In RGB it is rgb(138, 43, 226), and in CMYK it is cmyk(39%, 81%, 0%, 11%).

What is the OKLCH value of Blueviolet?

Blueviolet converts to oklch(0.534 0.250 301.4). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.

Is Blueviolet accessible for body text?

Used as a background, Blueviolet has a contrast ratio of 3.52:1 with black text and 5.96:1 with white text. WCAG 2.1 AA requires 4.5:1 for normal text. The current recommendation is to use white text and verify in real UI context.

What is the closest Pantone to Blueviolet?

The closest Pantone reference to Blueviolet by ΔE2000 perceptual distance is Pantone 254 C (#9B26B6). Cross-system Pantone matching is approximate; for color-critical print work, verify with a physical Pantone guide.

What is the closest RAL color to Blueviolet?

The closest RAL Classic reference to Blueviolet by ΔE2000 distance is RAL 4005 (Blue lilac, #6C4675). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.

What is the complementary color of Blueviolet?

The complementary color (180° opposite on the HSL color wheel) of Blueviolet is #84E22C. Use it for high-contrast accents, error states, or call-to-action pairings.

Data provenance & source

CSS Named Colors (CSS Color Module Level 4)

The 147 named colors defined by the W3C CSS Color Module Level 4 specification. Origin: VGA (16) + X11 (rest) + 'rebeccapurple'. Use as a reference for web color names that all browsers natively support. Names like 'crimson' or 'rebeccapurple' work as CSS values without any framework.

Source type
derived
Confidence
high
License
W3C permissive document license
Last reviewed
2026-05-24

Workflow tags

css
web-standard
named-keyword
purple

CSS named colors are sRGB digital values defined for browsers. For print, convert to a process-appropriate color and proof against substrate.

CSS Named Colors · Blueviolet — #8A2BE2 | PantoneTools