CSS named color
RebeccaPurple #663399
RebeccaPurple is a violet with the hex code #663399, which converts to rgb(102, 51, 153). Open #663399 in the converter to tweak it.
RebeccaPurple color values
| HEX | #663399 |
|---|---|
| HEX (shorthand) | #639 |
| RGB | rgb(102, 51, 153) |
| RGBA | rgba(102, 51, 153, 1) |
| 8-digit HEX | #663399FF |
| HSL | hsl(270, 50%, 40%) |
| HSV / HSB | 270°, 67%, 60% |
| CMYK | 33%, 67%, 0%, 40% |
| RGB 0–1 | 0.4, 0.2, 0.6 |
| Decimal | 6697881 |
| CSS keyword | rebeccapurple |
How #663399 converts to RGB
Split the hex code into three pairs and read each pair as a base-16 number: 66 → 102, 33 → 51, 99 → 153. That gives rgb(102, 51, 153). The step-by-step guide explains the math.
Shades of RebeccaPurple
Mixed toward black in 10% steps. Click a swatch to copy its hex.
Tints of RebeccaPurple
Mixed toward white in 10% steps.
Color harmonies
Hue rotations of RebeccaPurple on the HSL color wheel, keeping saturation and lightness fixed. The color harmony guide explains when each scheme works.
Complementary
Analogous
Split-complementary
Triadic
Tetradic (square)
Contrast and accessibility
| Text | Background | Ratio | WCAG 2.x |
|---|---|---|---|
| White | RebeccaPurple | 8.40:1 | AAA |
| Black | RebeccaPurple | 2.49:1 | Fail |
Use white text on a rebeccapurple background. Test any other pair in the contrast checker; thresholds are explained in the WCAG contrast guide.
Use RebeccaPurple in CSS
.element {
color: rebeccapurple; /* keyword */
background-color: #663399; /* hex */
border-color: rgb(102 51 153 / 50%); /* 50% transparent */
}
Need it semi-transparent? Append an alpha byte: #66339980 is RebeccaPurple at 50% opacity. See RGBA & transparency.
Similar named colors
FAQ
What is the HEX code for RebeccaPurple?
The CSS named color rebeccapurple is #663399 in hexadecimal. In CSS you can write color: rebeccapurple; or color: #663399; — both produce the same pixel.
What is RebeccaPurple in RGB?
RebeccaPurple is rgb(102, 51, 153): red 102, green 51, blue 153 on the 0–255 scale. As normalized 0–1 floats that is (0.4, 0.2, 0.6).
Is white or black text more readable on RebeccaPurple?
White text is more readable. White on #663399 has a contrast ratio of 8.40:1 (AAA), black on #663399 has 2.49:1 (Fail). WCAG AA needs 4.5:1 for normal text.