#800080
purple
#800080 is the CSS named color "purple", an exact match. In RGB it breaks down to red 128, green 0, and blue 128 out of 255 each. In HSL terms that's a hue of 300°, 100% saturation, and 25% lightness: quite dark, close to black — it works well as body text on a light background or as a near-black UI surface.
Every format
| HEX | #800080 |
| RGB | rgb(128, 0, 128) |
| HSL | hsl(300° 100% 25%) |
| HSB | hsb(300° 100% 50%) |
| OKLCH | oklch(42% 0.193 328°) |
| OKLAB | oklab(42% 0.165 -0.101) |
| LCH | lch(30% 66.8 327°) |
| CMYK | cmyk(0% 100% 0% 50%) |
Shades (darker)
#800080 · #750076 · #6b006c · #600061 · #560058
Tints (lighter)
#800080 · #932092 · #a636a4 · #b949b7 · #cc5cca
Shades mix #800080 toward black in even steps, useful for hover and pressed states in a UI; tints mix it toward white, useful for subtle backgrounds and disabled states that still read as the same color family.
On white: 9.42:1 — AAA
On black: 2.23:1 — fails
Frequently asked
- What is #800080 in RGB?
- #800080 is rgb(128, 0, 128) — red 128, green 0, blue 128 out of 255 each.
- Does #800080 pass WCAG contrast on a white background?
- It has a contrast ratio of 9.42:1 against white, which passes WCAG AAA for normal text.
- What's a good background color to pair with #800080?
- White text or a white background gives better contrast (9.42:1) than black (2.23:1).