#8B008B color codes
- HEX
- #8B008B
- HEX8
- #8B008BFF
- HEX8 (Android)
- #FF8B008B
- RGB
- rgb(139, 0, 139)
- RGB (%)
- 55%, 0%, 55%
- HSL
- hsl(300, 100%, 27%)
- HSV / HSB
- hsv(300, 100%, 55%)
- CMYK
- cmyk(0%, 100%, 0%, 45%)
- OKLCH
- oklch(0.4468 0.2053 328.36)
- OKLCH (%)
- oklch(44.68% 0.2053 328.36)
- Decimal
- 9109643
What color is #8B008B?
#8B008B sits at 45% lightness and 0.2053 chroma in OKLCH, hue 328.36°. Its nearest named color is DarkMagenta (an exact match).
Shades and tints of #8B008B
Tints
Shades
Tones
#8B008B color harmonies
Complementary
Analogous
Triadic
Split-complementary
Tetradic
Square
Monochromatic
Using #8B008B in CSS
.text { color: #8B008B; }
.background { background-color: #8B008B; }
.border { border: 2px solid #8B008B; }
/* Modern, perceptually uniform */
.text { color: oklch(0.4468 0.2053 328.36); }
/* #8B008B at 50% transparency */
.overlay { background-color: #8B008B80; }Is #8B008B accessible?
#8B008B on white text scores 8.50:1; on black text it scores 2.47:1. White text passes WCAG AAA on #8B008B. Recommended text color on a #8B008B background: white.
A 2.47:1 vs black
A 8.5:1 vs white
- AA normal ≥ 4.5 Pass
- AA large ≥ 3 Pass
- AAA normal ≥ 7 Pass
- AAA large ≥ 4.5 Pass
Recommended text color: white
CSS
contrast-color() contrast-color(#8B008B) → white APCA Lc experimental 91.7 Lc · body text — preferred (white text)
WCAG 2.1 AA/AAA is the compliance floor; APCA is an optional readability metric.
Related colors
Nearest featured color: Purple #800080. See more in the purple family on the colors hub.
Frequently asked questions
- What color is #8B008B?
- #8B008B is DarkMagenta. In RGB it is rgb(139, 0, 139), and in HSL hsl(300, 100%, 27%).
- What is #8B008B in RGB?
- #8B008B converts to rgb(139, 0, 139) — red 139, green 0, blue 139.
- What text color is readable on #8B008B?
- White text — it has the higher contrast ratio (8.50:1) against #8B008B. White text passes WCAG AAA on #8B008B.