rebecca purple color code
The hex code for rebecca purple is #663399, which is rgb(102, 51, 153) in RGB and cmyk(33%, 67%, 0%, 40%) in CMYK. It's a medium, moderately saturated purple. It is a built-in CSS colour, so you can also write it as “rebeccapurple”.
Build a full palette from it: open in the palette generator.
Move the sliders to find a lighter, darker or softer rebecca purple; the codes update as you go.
Rebecca Purple colour codes
| HEX | #663399 |
|---|---|
| RGB | rgb(102, 51, 153) |
| HSL | hsl(270, 50%, 40%) |
| HSV / HSB | hsv(270, 67%, 60%) |
| CMYK | cmyk(33%, 67%, 0%, 40%) |
| Decimal | 6697881 |
| CSS keyword | rebeccapurple |
About rebecca purple
Rebecca Purple sits at a hue of 270° on the colour wheel, with 50% saturation and 40% lightness. That makes it a colour that sits between warm and cool: greens and purples like this can be styled warm or cool depending on what you put next to them.
Added to CSS in 2014 in memory of Rebecca Meyer, daughter of web standards author Eric Meyer.
For text, white reads better on rebecca purple. Rebecca Purple as text on a white background has a contrast ratio of 8.4:1, which passes the WCAG AA rule for body text (4.5:1). On black it is 2.49:1, which fails AA for body text.
Tints and shades of rebecca purple
Tints mix rebecca purple with white and shades mix it with black, in 10% steps. They're the easiest way to get lighter backgrounds and darker hover or text colours that still match.
Colours that go with rebecca purple
Complementary — opposite on the colour wheel: maximum contrast
Analogous — neighbours 30° either side: calm and natural
Triadic — three hues 120° apart: lively but balanced
Split complementary — the two neighbours of the complement: contrast with less tension
Tetradic — four hues 90° apart: rich, use one as the main colour
Rebecca Purple text contrast
| Combination | Ratio | AA normal (4.5:1) | AA large (3:1) | AAA (7:1) |
|---|---|---|---|---|
| rebecca purple on white | 8.4:1 | pass | pass | pass |
| rebecca purple on black | 2.49:1 | fail | fail | fail |
Check rebecca purple against any other colour in the contrast checker.
How rebecca purple looks with colour blindness
Simulated with the Machado et al. (2009) model for the complete loss of one type of cone cell. Colour vision deficiency affects roughly 1 in 12 men and 1 in 200 women, most often as red-green colour blindness.
Use rebecca purple in code
.rebecca-purple {
color: rebeccapurple;
background-color: #663399;
border-color: rgb(102, 51, 153);
}Frequently asked questions
What is the hex code for rebecca purple?
Rebecca Purple is #663399 (lowercase #663399). It's the official value of the CSS keyword “rebeccapurple”.
What is rebecca purple in RGB, HSL and CMYK?
RGB: rgb(102, 51, 153). HSL: hsl(270, 50%, 40%). CMYK: cmyk(33%, 67%, 0%, 40%). CMYK is a simple conversion for reference; for professional printing, ask your printer for a matching ink or Pantone swatch.
What colours go with rebecca purple?
Its complementary colour is #669933 (close to olive drab), which gives the strongest contrast. For a calmer look, use the analogous colours #333399 and #993399, or the triadic pair #996633 and #339966. Tints and shades of rebecca purple itself always work together.
Is rebecca purple a warm or cool colour?
Rebecca Purple has a hue of 270°, which makes it neither clearly warm nor cool.
Should I use black or white text on rebecca purple?
White. Black text on rebecca purple has a contrast ratio of 2.49:1 and white text has 8.4:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.
How do I use rebecca purple in CSS?
Write color: rebeccapurple; or color: #663399; — both give the same colour. Named colours work in every browser.