mediumpurple (#9370DB)

mediumpurple is a CSS named color with the hex code #9370DB, rgb(147, 112, 219). It is a light, saturated violet.

mediumpurple#9370DB
Keywordmediumpurple
HEX#9370db
RGBrgb(147, 112, 219)
HSLhsl(260, 60%, 65%)

Full #9370DB details: palettes, shades, color-blind view →

Description

Mediumpurple (read as "medium purple") has a hue of 260°, saturation 60% and lightness 65%, which places it in the purple family. The "medium" prefix is part of the CSS name, but CSS names are not systematic: for example darkgray (#A9A9A9) is lighter than gray (#808080).

Using mediumpurple in CSS

.title { color: mediumpurple; }
.box   { background: mediumpurple; border-color: #9370db; }
.soft  { background: rgb(147 112 219 / 20%); }   /* mediumpurple at 20% opacity */

Named colors are case-insensitive and supported by every browser. Most of the 148 names come from the X11 color list adopted by early browsers.

Similar named colors

ColorHEXRGBΔE 2000
mediumslateblue#7b68ee123, 104, 2386.1
mediumorchid#ba55d3186, 85, 21110.1
slateblue#6a5acd106, 90, 20510.4
lightslategray#778899119, 136, 15312
slategray#708090112, 128, 14412.3
royalblue#4169e165, 105, 22514.4
orchid#da70d6218, 112, 21414.6
darkorchid#9932cc153, 50, 20414.8

ΔE 2000 measures perceived difference: under 2 is hard to tell apart, over 10 is clearly different.

Pairs well with

Readability

Contrast with white text: 3.76:1; with black text: 5.58:1. Black body text on mediumpurple meets WCAG AA; white text does not.

Frequently asked questions

What is the hex code for mediumpurple?
#9370DB.
What colors are similar to mediumpurple?
mediumslateblue (#7b68ee), mediumorchid (#ba55d3), slateblue (#6a5acd).