Toolman

rebeccapurple — #663399

#663399

rgb(102, 51, 153) · hsl(270, 50%, 40%) · CSS keyword rebeccapurple

Can you put text on it?

ContrastBody textLarge text
rebeccapurple on white8.41:1AAAA
rebeccapurple on black2.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

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

#663399 in full — tints, shades and harmonies · All named colours · Colour reference