rebeccapurple — #663399
#663399
rgb(102, 51, 153) · hsl(270, 50%, 40%) · CSS keyword rebeccapurple
Can you put text on it?
| Contrast | Body text | Large text | |
|---|---|---|---|
| rebeccapurple on white | 8.41:1 | AA | AA |
| rebeccapurple on black | 2.5:1 | — | — |
As a background, rebeccapurple takes white text: 8.41:1 against 2.5:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.
Using it
color: rebeccapurple;
color: #663399;
color: rgb(102 51 153);
All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.
Colours close to rebeccapurple
- darkslateblue — #483D8B
- blueviolet — #8A2BE2
- darkorchid — #9932CC
- slateblue — #6A5ACD
- purple — #800080
- indigo — #4B0082
Frequently asked questions
What is the hex code for rebeccapurple?
The hex code for rebeccapurple is #663399 — RGB 102, 51, 153.
Can I use rebeccapurple for text?
Yes. rebeccapurple reaches 8.41:1 against white, past the 4.5:1 that WCAG AA asks for body text.
Should text on rebeccapurple be black or white?
White — 8.41:1 against 2.5:1 the other way.
Other named colours
- red — #FF0000
- rosybrown — #BC8F8F
- royalblue — #4169E1
- saddlebrown — #8B4513
- salmon — #FA8072
- sandybrown — #F4A460
- seagreen — #2E8B57
- seashell — #FFF5EE
- sienna — #A0522D
- silver — #C0C0C0
- skyblue — #87CEEB
- slateblue — #6A5ACD
#663399 in full — tints, shades and harmonies · All named colours · Colour reference