WordGPT

Blue violet color (#8A2BE2)

#8A2BE2 (Blue violet) is a purple colour. It is rgb(138, 43, 226) in RGB and hsl(271, 76%, 53%) in HSL. Text in white reads better on it: the contrast is 5.96:1 against white and 3.52:1 against black.

#8A2BE2
Blue violet: #8A2BE2
Complementary#8A2BE2#83E22BAnalogous#2F2BE2#8A2BE2#E22BDETriadic#8A2BE2#E28A2B#2BE28ATetradic (square)#8A2BE2#E22F2B#83E22B#2BDEE2Split complementary#8A2BE2#DEE22B#2BE22F
Complementary, analogous, triadic, tetradic and split-complementary palettes made from this colour
1707262e0e4b4516715c1d977324bc8a2be29e4ee7b172ecc595f1d8b8f5ecdcfa
From dark shades (left, mixed with black) to light tints (right, mixed with white)

How to work it out

  1. 1

    A hex code is three pairs of base-16 digits: red, green and blue, from 00 (none) to FF (full).

    \mathrm{#8A2BE2}:\quad R=\mathrm{8A}_{16}=138,\ G=\mathrm{2B}_{16}=43,\ B=\mathrm{E2}_{16}=226
  2. 2

    HSL describes the same colour as a hue angle on the colour wheel (0° red, 120° green, 240° blue), a saturation and a lightness.

    H=271∘,S=76%,L=53%H=271^\circ,\quad S=76\%,\quad L=53\%
  3. 3

    The complementary colour sits opposite on the wheel: add 180° to the hue.

    271^\circ + 180^\circ = 91^\circ ;\Rightarrow; \mathrm{#83E22B}
  4. 4

    Contrast is the ratio of the lighter to the darker relative luminance, each plus 0.05. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text (AA).

    contrast=L1+0.05L2+0.05=5.96:1 (on white)\text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 5.96:1\ \text{(on white)}
LaTeX source of the formulas on this page
\[ \mathrm{#8A2BE2} = \mathrm{rgb}(138, 43, 226) \]
\[ \mathrm{#8A2BE2}:\quad R=\mathrm{8A}_{16}=138,\ G=\mathrm{2B}_{16}=43,\ B=\mathrm{E2}_{16}=226 \]
\[ H=271^\circ,\quad S=76\%,\quad L=53\% \]
\[ 271^\circ + 180^\circ = 91^\circ ;\Rightarrow; \mathrm{#83E22B} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 5.96:1\ \text{(on white)} \]

Blue violet in every colour format

FormatValue
HEX#8A2BE2
RGBrgb(138, 43, 226)
RGB (percent)rgb(54.1%, 16.9%, 88.6%)
HSLhsl(271, 76%, 53%)
HSV / HSBhsv(271, 81%, 89%)
CMYKcmyk(39%, 81%, 0%, 11%)
Decimal9055202
Descriptionpurple
CSS nameblueviolet

Text contrast (WCAG)

Background of this colour with…ContrastAA normal (4.5)AA large (3)AAA normal (7)AAA large (4.5)
White text5.96:1passpassfailpass
Black text3.52:1failpassfailfail

Shades and tints

KindHex codes (darkest to lightest)
Shades (mixed with black)#170726 #2E0E4B #451671 #5C1D97 #7324BC
This colour#8A2BE2
Tints (mixed with white)#9E4EE7 #B172EC #C595F1 #D8B8F5 #ECDCFA

How it looks with colour blindness

TypeHexDistance from the original
Protanopia#0063E742
Deuteranopia#0063DF45
Tritanopia#765F8976
Grayscale#646464-

Nearest named colours

NameHex
Dark violet#9400D3
Dark orchid#9932CC
Medium blue#0000CD
Medium orchid#BA55D3

Questions

What is the RGB value of #8A2BE2?

rgb(138, 43, 226): red 138, green 43, blue 226.

What is the HSL value of #8A2BE2?

hsl(271, 76%, 53%): a hue of 271°, 76% saturation and 53% lightness.

What is the complementary colour of #8A2BE2?

#83E22B, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #75D41D.

Should I use white or black text on #8A2BE2?

White. White gives 5.96:1 and black 3.52:1; the better one passes WCAG AA for normal text.

What is the CMYK value of #8A2BE2?

cmyk(39%, 81%, 0%, 11%). This is a simple formula conversion; printed colours depend on the printer profile.

Is #8A2BE2 a named colour?

Yes: it is the CSS colour name "blueviolet".

Matching colours

A little darker, a little lighter

Make a palette

    Blue violet (#8A2BE2): color code, RGB, HSL, shades and palettes | WordGPT