CSS color names · Purples

Medium Purple color: hex #9370db, RGB and HSL

Medium Purple is the CSS keyword mediumpurple, hex #9370db, rgb(147, 112, 219), hsl(260, 60%, 65%). It is a medium, vivid violet in the purples family. Below: the colors that go with it, its tints and shades, how it reads as text, and a complete interface palette built from it.

CSS name
mediumpurple
Hex
#9370db
RGB
rgb(147, 112, 219)
HSL
hsl(260, 60%, 65%)
On white
3.76:1 — large text and UI only (3:1)
On black
5.58:1 — passes AA for body text
.example {
  color: mediumpurple;          /* keyword */
  color: #9370db;          /* hex */
  color: rgb(147, 112, 219); /* rgb */
  color: hsl(260, 60%, 65%); /* hsl */
}

What colors go with medium purple

Each match keeps medium purple's saturation and lightness and rotates only the hue, so the relationship is the wheel's and nothing else. Any of these can be an accent beside medium purple as the primary; the harmony guides explain which rule suits which interface.

Complementary

The opposite hue, 180° away — the strongest contrast, best kept to one accent per screen.

#b8db70

Split-complementary

The two neighbors of the complement, at 150° and 210° — most of the contrast with less tension, and two accents instead of one.

#dbc970
#82db70

Triadic

Two hues at 120° and 240° — three evenly spaced signals, the scheme charts and category colors want.

#db9370
#70db93

Analogous

The neighbors at −30° and +30° — calm and cohesive, with emphasis coming from weight and size rather than hue.

#7082db
#c970db

Tints and shades of medium purple

Tints add lightness toward white; shades remove it toward black. The hue and saturation stay fixed, so every step still reads as medium purple — these are the hover, pressed, disabled and surface variants a single brand color needs.

Tints (lighter)

#a588e1
#b7a0e7
#c9b7ed
#dbcff3
#ede7f9

Shades (darker)

#7244d0
#582cb0
#422184
#2c1658
#160b2c

A UI color palette built from medium purple

The eight semantic roles an interface actually uses, derived from medium purple as the primary with the split-complementary rule: secondary and accent rotate around the wheel, and the five neutrals take the hue at lightness steps tuned for light and dark mode. This is the same derivation the palette generator runs — open it there to change the rule, drag the anchors, or export the set as CSS variables.

Light mode
primary
#9370db
secondary
#dbc970
accent
#82db70
background
#fcfcfd
surface
#f4f3f7
text
#161122
muted
#69578e
border
#e3dfec
Dark mode
primary
#9370db
secondary
#dbc970
accent
#82db70
background
#120e1a
surface
#1b1528
text
#f4f3f6
muted
#a096b6
border
#322749

Using medium purple in an interface

Purple is the hue most SaaS products have settled on for a primary — it is distinct from the blues of links and the reds and greens of status. The slate blues and indigo make dependable primaries; the light lavenders make tinted surfaces that still read as brand. Whichever role medium purple takes, define it once as a token rather than repeating the keyword: the semantic palette guide covers the eight roles, and the guides to complementary, triadic and the other color schemes explain how to weight the matches above.

What is the hex code for Medium Purple?
Medium Purple is #9370db. In CSS the keyword mediumpurple, the hex #9370db, rgb(147, 112, 219) and hsl(260, 60%, 65%) all paint the same color.
What colors go with Medium Purple?
Its complement is #b8db70, the split-complementary pair is #dbc970 and #82db70, the triadic partners are #db9370 and #70db93, and the analogous neighbors are #7082db and #c970db. In an interface, use Medium Purple for most colored elements and one of these for a single accent, at roughly an 80/20 split.
What is the opposite of Medium Purple on the color wheel?
The opposite (complementary) color is #b8db70, the same saturation and lightness rotated 180° around the HSL wheel. Complementary pairs give the strongest contrast, which is why the complement should be used sparingly rather than at equal weight.
Can I use Medium Purple for text?
Medium Purple as text on white has a contrast ratio of 3.76:1, which fails WCAG AA for body text (4.5:1) but passes for large text and UI components (3:1). On black it is 5.58:1, which passes for body text. Use it as text on dark surfaces, or as a fill with dark text on top.

Similar named colors

More purples

We'd like to use Google cookies to understand how Nodlume is used and to measure our advertising. Nothing loads until you choose, and declining does not affect anything in the app.