Medium Purple
Hex #9370DB, rgb(147 112 219). A purple CSS named color.
Open in palette generatorMedium Purple color codes
Click any value to copy it.
- HEX
- RGB
- HSL
- HSV
- HWB
- CMYK
- OKLCH
- OKLab
- Lab
- LCH
- CSS keyword
About Medium Purple
Medium Purple is a medium saturated purple with the hex code #9370DB. In RGB it is made of 147 red, 112 green and 219 blue; in HSL its hue is 260°, with 60% saturation and 65% lightness. Its perceptual lightness (OKLCH L) is 62.7%.
It is a CSS named color, so you can write "mediumpurple" anywhere CSS accepts a color. Against white it has a contrast ratio of 3.76:1 and against black 5.58:1, so black text reads better on it and passes WCAG AA for normal text.
Tints, shades and tones
Medium Purple mixed step by step with white, black and middle gray (#808080).
Tints (with white)
Shades (with black)
Tones (with gray)
Medium Purple 50-950 scale
A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.
Colors that go with Medium Purple
Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.
Complementary
Split complementary
Contrast and readability
WCAG 2 contrast of Medium Purple with white and black. The readable text color on Medium Purple is black.
On white3.76:1
- AA fail
- AA Large pass
- AAA fail
- UI 3:1 pass
APCA Lc 65
On black5.58:1
- AA pass
- AA Large pass
- AAA fail
- UI 3:1 pass
APCA Lc -37
Test any pair in the contrast checker.
Color blindness preview
How Medium Purple appears with each type of color vision deficiency (simulated with the Machado model).
- Protanopia#4B84DF
- Deuteranopia#5282D8
- Tritanopia#83849B
- Protanomaly#647FDD
- Deuteranomaly#667FD9
- Tritanomaly#8F79C1
- Achromatopsia#848484
Colors similar to Medium Purple
The closest named colors by perceptual difference (OKLab).
Use Medium Purple in CSS and Tailwind
.medium-purple {
color: mediumpurple; /* #9370DB */
background-color: rgb(147 112 219);
border-color: oklch(62.7% 0.158 296.7);
}/* Tailwind CSS v4: bg-medium-purple-500, text-medium-purple-700... */
@theme {
--color-medium-purple-50: #FAF9FF;
--color-medium-purple-100: #EFEBFD;
--color-medium-purple-200: #DED6F8;
--color-medium-purple-300: #C6B6F3;
--color-medium-purple-400: #A78BE7;
--color-medium-purple-500: #9370DB;
--color-medium-purple-600: #7F5DC2;
--color-medium-purple-700: #66499F;
--color-medium-purple-800: #513A7E;
--color-medium-purple-900: #413066;
--color-medium-purple-950: #190E2F;
}
<!-- or the exact color, no config -->
<div class="bg-[#9370DB] text-[#000000]">…</div>