#8B008B
darkmagenta
#8B008B is the CSS named color "darkmagenta", an exact match. In RGB it breaks down to red 139, green 0, and blue 139 out of 255 each. In HSL terms that's a hue of 300°, 100% saturation, and 27% 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 | #8b008b |
| RGB | rgb(139, 0, 139) |
| HSL | hsl(300° 100% 27%) |
| HSB | hsb(300° 100% 55%) |
| OKLCH | oklch(45% 0.205 328°) |
| OKLAB | oklab(45% 0.175 -0.108) |
| LCH | lch(33% 70.9 327°) |
| CMYK | cmyk(0% 100% 0% 45%) |
Shades (darker)
#8b008b · #7f0080 · #740075 · #69006a · #5d005f
Tints (lighter)
#8b008b · #9d219c · #af37ae · #c24ac0 · #d55cd2
Shades mix #8B008B 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: 8.50:1 — AAA
On black: 2.47:1 — fails
Frequently asked
- What is #8B008B in RGB?
- #8B008B is rgb(139, 0, 139) — red 139, green 0, blue 139 out of 255 each.
- Does #8B008B pass WCAG contrast on a white background?
- It has a contrast ratio of 8.50:1 against white, which passes WCAG AAA for normal text.
- What's a good background color to pair with #8B008B?
- White text or a white background gives better contrast (8.50:1) than black (2.47:1).