Shades of purple

Purple blends red's energy with blue's depth. It has long signalled luxury and creativity, and violet and indigo have become the signature colors of modern SaaS and AI products.

purple · #800080

18 purple color names

Every CSS named color in the purple family, lightest to darkest. Each name works directly in CSS. Open any swatch for its full conversions, 50–950 scale and harmonies.

Tailwind purple scales

The Tailwind v4 default palette families closest to purple, 50 to 950.

Using purple in a UI

Purples reach very high chroma, and many vivid ones sit outside sRGB. Author them in OKLCH and let the browser clamp for older screens.

purple-colors.css
:root {
  --lavender: oklch(0.931 0.027 285.9); /* #e6e6fa */
  --thistle: oklch(0.833 0.044 326); /* #d8bfd8 */
  --plum: oklch(0.783 0.108 326.5); /* #dda0dd */
  --violet: oklch(0.762 0.186 327.2); /* #ee82ee */
  --orchid: oklch(0.702 0.181 328.7); /* #da70d6 */
  --fuchsia: oklch(0.702 0.322 328.4); /* #ff00ff */
  --mediumpurple: oklch(0.627 0.158 296.7); /* #9370db */
  --mediumorchid: oklch(0.626 0.202 319.2); /* #ba55d3 */
  --mediumslateblue: oklch(0.604 0.194 285.5); /* #7b68ee */
  --slateblue: oklch(0.544 0.171 285.5); /* #6a5acd */
  --darkorchid: oklch(0.541 0.227 311.5); /* #9932cc */
  --blueviolet: oklch(0.534 0.25 301.4); /* #8a2be2 */
  --darkviolet: oklch(0.515 0.261 309.8); /* #9400d3 */
  --darkmagenta: oklch(0.447 0.205 328.4); /* #8b008b */
  --rebeccapurple: oklch(0.44 0.16 303.4); /* #663399 */
  --purple: oklch(0.421 0.193 328.4); /* #800080 */
  --darkslateblue: oklch(0.414 0.125 286); /* #483d8b */
  --indigo: oklch(0.339 0.179 301.7); /* #4b0082 */
}

Frequently asked questions

What is the hex code for purple?
The CSS keyword purple is #800080, which is rgb(128 0 128) or oklch(0.421 0.193 328.4). Tailwind's purple-500 is #AD46FF, a softer purple that many design systems use instead.
How many shades of purple have CSS color names?
This page lists 18 CSS named colors in the purple family, from lavender (#E6E6FA) at the light end to indigo (#4B0082) at the dark end. Every one can be used directly in CSS by name.
What colors go well with purple?
Purple pairs well with yellow, green and gray. For a guaranteed match, open any purple shade and use its complementary, analogous or triadic palette, all calculated in OKLCH.
How do I make a purple color scale for my design system?
Pick a purple you like on this page, open it in the color scale generator, and export an 11-step 50–950 ramp as CSS variables, JSON or a Tailwind v4 theme. The ramp is built in OKLCH, so every step looks evenly spaced.

Other color families