AfoliOpen Afoli →

Blue Violet color #8A2BE2

Blue Violet is one of the CSS named colors (keyword blueviolet) with the hex code #8A2BE2 — RGB 138, 43, 226, HSL 271°, 76%, 53%.

Open in Afoli Colour tools →

#8A2BE2Blue Violet

Color codes

HEX
#8A2BE2
RGB
rgb(138, 43, 226)
HSL
hsl(271, 76%, 53%)
CMYK
39%, 81%, 0%, 11%
OKLCH
oklch(53.4% 0.25 301.4)
CSS keyword
blueviolet

Tints and shades

#F7F3FF#E1D1FF#CDAEFF#BA88FF#A85DFF#9236EB#7A06CF#5E00A2#430075#29004C#120027

Color harmonies

Complementary
#8A2BE2#627700
Analogous
#424EFA#8A2BE2#B400AA
Triadic
#8A2BE2#9F5900#007F70
Split complementary
#8A2BE2#846A00#00833F
Tetradic
#8A2BE2#C91D00#627700#007B8C

Contrast with text

PairWCAG 2.x ratioAPCA LcResult
Blue Violet text on white5.96 : 178AA — body text
Blue Violet text on black3.52 : 1-23AA for large text only
White text on Blue Violet5.96 : 1-84AA — body text
Black text on Blue Violet3.52 : 126AA for large text only

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large text.

Palettes with this color

Frequently asked questions

What is the hex code of Blue Violet?

Blue Violet has the hex code #8A2BE2, which is RGB 138, 43, 226 and HSL 271°, 76%, 53%.

Which text color reads best on Blue Violet?

White text: contrast 5.96 : 1 (black text: 3.52 : 1).

Which colors go well with Blue Violet?

Its complementary color is #627700; analogous colors are #424EFA and #B400AA; a triadic set adds #9F5900 and #007F70.

Similar colors

Sources and licences

Updated November 21, 2026