Medium Purple Hex Code #9370DB
Medium Purple is a medium, moderate purple with the hex code #9370DB. In RGB it is 147, 112, 219, and in HSL it is 260°, 60%, 65%. It is one of the 148 named colors in CSS, so you can write “mediumpurple” instead of the hex code.
- HEX
- #9370DB
- RGB
- rgb(147, 112, 219)
- HSL
- hsl(260, 60%, 65%)
- HSV
- hsv(260°, 49%, 86%)
- CMYK
- cmyk(33%, 49%, 0%, 14%)
- CSS name
- mediumpurple
CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.
About Medium Purple
On a white background Medium Purple has a contrast ratio of 3.76:1 (AA Large), and on black 5.58:1 (AA). Black text is the better choice on top of it.
It sits on the cool side of the color wheel, a range that tends to feel calm and appears to recede.
Purple combines the calm of blue with the energy of red. It reads as creative and premium, and is often used by design, media and beauty brands.
Shades and tints of Medium Purple
Tints mix Medium Purple with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.
Color harmonies for Medium Purple
These schemes are calculated from Medium Purple on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.
On the artist’s RYB wheel, the complement of Medium Purple is #DBCB70, close to the named color Khaki.
Medium Purple contrast and accessibility
WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Medium Purple scores against white and black.
| Against | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White (#ffffff) | 3.76:1 | ✕ Fail | ✓ Pass | ✕ Fail | ✕ Fail |
| Black (#000000) | 5.58:1 | ✓ Pass | ✓ Pass | ✕ Fail | ✓ Pass |
Medium Purple and color blindness
These are approximate previews of how Medium Purple can look with the main types of color vision deficiency.
Medium Purple changes noticeably.
Medium Purple changes noticeably.
Medium Purple changes noticeably.
Medium Purple changes noticeably.
Gradients with Medium Purple
Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.
Medium Purple to a lighter tint
background: linear-gradient(135deg, #9370db 0%, #d4c6f1 100%); Medium Purple to its analogous neighbour
background: linear-gradient(135deg, #9370db 0%, #c970db 100%); Medium Purple to its complement
background: linear-gradient(135deg, #9370db 0%, #b8db70 100%); Colors similar to Medium Purple
How each close match differs from Medium Purple.
- Slate Blue #6A5ACD Slightly darker, leans more blue.
- Medium Slate Blue #7B68EE More saturated, leans more blue.
- Royal Blue #4169E1 Slightly darker, more saturated, leans more blue.
- Medium Orchid #BA55D3 Very close in lightness, saturation and hue.
- Rebecca Purple #663399 Darker.
- Orchid #DA70D6 Slightly lighter, leans more magenta.
Use Medium Purple in code
.element {
color: #9370db;
background-color: #9370db;
border-color: mediumpurple; /* mediumpurple is a valid CSS color name */
} :root {
--color-medium-purple: #9370db;
} <!-- Tailwind arbitrary values -->
<div class="bg-[#9370db] text-[#9370db] border-[#9370db]"></div>
/* Tailwind v4 theme color */
@theme {
--color-medium-purple: #9370db;
} Medium Purple questions
What is the hex code for Medium Purple?
The hex code for Medium Purple is #9370DB. In RGB that is rgb(147, 112, 219), and in HSL it is hsl(260, 60%, 65%).
What is the complementary color of Medium Purple?
On the RGB (screen) color wheel, the complement of Medium Purple is #B8DB70, which is close to Khaki. On the artist’s RYB wheel it is #DBCB70, close to Khaki.
Should I use white or black text on Medium Purple?
Black text. It has a contrast ratio of 5.58:1 against Medium Purple, which is WCAG AA. The other option scores 3.76:1.
Is Medium Purple accessible as a text color on white?
Only for large text. Medium Purple on white scores 3.76:1, which passes WCAG AA for large text (3:1) but not for normal text (4.5:1).
What are darker and lighter shades of Medium Purple?
Mixing Medium Purple with black gives #765AAF, #584383, #3B2D58, #1D162C (20% to 80% black). Mixing it with white gives #A98DE2, #BEA9E9, #D4C6F1, #E9E2F8 (20% to 80% white).