Medium purple
Medium purple is a rich shade of purple. Hex code #9370DB.
Medium purple color codes
- CSS name
mediumpurple - HEX
#9370DB - RGB
rgb(147, 112, 219) - HSL
hsl(260, 60%, 65%) - OKLCH
oklch(62.7% 0.158 296.7)
HSB and CMYK values
- HSB / HSV
hsb(260, 49%, 86%) - CMYK
C33 M49 Y0 K14
White text
3.76:1 · passes WCAG AA for large text only
Black text
5.58:1 · passes WCAG AA
Shades of medium purple
A darker shade of medium purple is #734EB6 (500), and a lighter one is #BFA8F9 (200).
Colors that go with medium purple
Complementary
Analogous
Triadic
The complementary color of medium purple is #B8DB70.
Click a color to copy its hex code.
Colors similar to medium purple
- Medium slate blue#7B68EE
Slightly darker, more blue, more vivid
- Medium orchid#BA55D3
More pink, more vivid
- Slate blue#6A5ACD
Darker, more blue
- Cornflower blue#6495ED
Slightly lighter, more blue
- Royal blue#4169E1
Darker, more blue, more vivid
- Dark orchid#9932CC
Darker, more pink, more vivid
Each compared with medium purple.
About this color
Medium purple in CSS and design
Medium purple is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same medium purple:
color: mediumpurple;
color: #9370DB;
color: rgb(147, 112, 219);
color: hsl(260, 60%, 65%);Frequently asked questions
What is the hex code for medium purple?
#9370DB. In CSS you can also use the keyword mediumpurple, which works in every browser.
What is medium purple in RGB and HSL?
In RGB it is rgb(147, 112, 219) and in HSL hsl(260, 60%, 65%). In CMYK it is about C33 M49 Y0 K14, though printed colors vary with paper and ink.
Should I use black or white text on medium purple?
Black text works better: it has a contrast ratio of 5.58:1 and passes WCAG AA. White text reaches 3.76:1.
What is the complementary color of medium purple?
#B8DB70. It sits opposite medium purple on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.
Which colors go with medium purple?
For strong contrast, pair it with its complementary color #B8DB70. For a calmer look, combine it with its analogous neighbors #7082DB and #C970DB. The palette generator builds more combinations.