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
White text on this color
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.
50
#F6EEFD
#F6EEFD
100
#ECDDFA
#ECDDFA
200
#DABBF6
#DABBF6
300
#C595F1
#C595F1
400
#A760E9
#A760E9
500
#8A2BE2
#8A2BE2
600
#7525C0
#7525C0
700
#5A1C93
#5A1C93
800
#3E1366
#3E1366
900
#230B39
#230B39
950
#11051B
#11051B
Lighter tints (mixed with white)
15%
#A373E7
30%
#B899EB
45%
#CAB5F0
60%
#DACDF4
75%
#E9E1F8
Darker shades (mixed with black)
15%
#8027D2
30%
#7523C1
45%
#681EAD
60%
#5A1996
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
#8A2BE2
#8A2BE2
#84E22C
#84E22C
Triadic
Three colors 120° apart
#8A2BE2
#8A2BE2
#E28A2C
#E28A2C
#2CE28A
#2CE28A
Analogous
Two neighbors ±30° on the wheel
#2F2CE2
#2F2CE2
#8A2BE2
#8A2BE2
#E22CDF
#E22CDF
Split-complementary
Base + two colors flanking its complement
#8A2BE2
#8A2BE2
#DFE22C
#DFE22C
#2CE22F
#2CE22F
Tetradic
Two complementary pairs
#8A2BE2
#8A2BE2
#E22C84
#E22C84
#84E22C
#84E22C
#2CE28A
#2CE28A
Square
Four colors evenly spaced 90° apart
#8A2BE2
#8A2BE2
#E22F2C
#E22F2C
#84E22C
#84E22C
#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.
Closest Pantone matches
Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.
Closest RAL Classic matches
Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.
RAL 4005
#6C4675
Blue lilac
RAL 4008
#924E7D
Signal violet
RAL 7000
#7E8B92
Squirrel grey
RAL 4006
#A03472
Traffic purple
RAL 7011
#434B4D
Iron grey
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 named colors are sRGB digital values defined for browsers. For print, convert to a process-appropriate color and proof against substrate.