Medium Purple Color Code: Hex #9370DB
The hex code for Medium Purple is #9370DB (the CSS keyword mediumpurple). Medium Purple RGB code: rgb(147, 112, 219). The xkcd color survey gives #9E43A2 instead, which looks clearly different; both codes are below with their source.
#9370DBTop: the code browsers use#9E43A2Below: compare edge to edgeMedium Purple color codes: each Medium Purple hex code in every format
Sources
Properties
- Hex codes
- 2 different ones in 3 color lists; they look clearly different
- Family
- purple
- Contrast
- 3.76:1 with white, 5.58:1 with black
- CSS keyword
- mediumpurple
- Character
- mid-tone, vivid
- Readable text on it
- black (AA)
It shares saturation and lightness with orchid and pale violet red in the X11 set, at about 60% saturation and 65% lightness.
A mid-tone, vivid violet with a cool cast. In code, mediumpurple gives exactly this web value. If you mean the color as people usually picture the name, the survey value #9E43A2 is closer: it is darker and more vivid.
Black text reads best on it; white text works only for large headings. Its exact opposite on the color wheel cannot be shown on screens, so the complementary palette uses the closest displayable version. Even pale tints keep its hue, which makes it easy to use for soft backgrounds. Next to Medium Slate Blue, its closest named neighbour, it looks lighter, more muted and warmer; beside Periwinkle it looks darker, more muted and warmer.
Colors that go with Medium Purple
Complementary: the opposite of Medium Purple
#9370DBBlack text 5.58:1#839200Black text 6.08:1#C1B1EEBlack text 10.79:1#4F5900White text 7.60:1
Analogous
#5C82E7Black text 5.80:1#9370DBBlack text 5.58:1#B861BABlack text 5.46:1#D2C6F3Black text 13.11:1
Triadic
#9370DBBlack text 5.58:1#CB6B00Black text 5.64:1#009F86Black text 6.30:1#E2DBF8Black text 15.72:1
Monochrome
#251A3CWhite text 16.26:1#594387White text 8.15:1#9370DBBlack text 5.58:1#B19CE8Black text 8.79:1#D2C6F3Black text 13.11:1
With neutrals
#9370DBBlack text 5.58:1#E2DBF8Black text 15.72:1#0E081BWhite text 19.64:1#857D9CBlack text 5.41:1
Preview
Heading on Medium Purple
Body text on this color, 5.58:1.
ButtonHeading in Medium Purple
Text in this color on white, 3.76:1.
ButtonTints and shades
#E2DBF8#D2C6F3#C1B1EE#B19CE8#A286E2#9370DB#7559B0#594387#3E2E60#251A3C#0E081B
WhiteMedium PurpleBlack
Similar named colors
Where the name comes from
- Source: Wikipedia, “X11 color names” (checked 1 Nov 2026)
- Listed in CSS Color 4, xkcd color survey, meodai color-name-list. About these lists.
Try it: