Free Accessible CSS Gradient Generator

← All Colors
#663399 Rebecca Purple

Rebecca Purple Hex Code #663399

Rebecca Purple is a dark, moderate purple with the hex code #663399. In RGB it is 102, 51, 153, and in HSL it is 270°, 50%, 40%. It is one of the 148 named colors in CSS, so you can write “rebeccapurple” instead of the hex code.

HEX
#663399
RGB
rgb(102, 51, 153)
HSL
hsl(270, 50%, 40%)
HSV
hsv(270°, 67%, 60%)
CMYK
cmyk(33%, 67%, 0%, 40%)
CSS name
rebeccapurple

CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.

About Rebecca Purple

On a white background Rebecca Purple has a contrast ratio of 8.41:1 (AAA), and on black 2.50:1 (Fail). White text is the better choice on top of it.

It sits on the cool side of the color wheel, a range that tends to feel calm and appears to recede.

Purple combines the calm of blue with the energy of red. It reads as creative and premium, and is often used by design, media and beauty brands.

Good to know: Rebeccapurple was added to CSS in 2014 in memory of Rebecca Meyer, the daughter of web standards author Eric Meyer, who died that year aged six.

Shades and tints of Rebecca Purple

Tints mix Rebecca Purple with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.

Color harmonies for Rebecca Purple

These schemes are calculated from Rebecca Purple on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.

Analogous

Open in the color wheel

Triadic

Open in the color wheel

Tetradic

Open in the color wheel

Square

Open in the color wheel

On the artist’s RYB wheel, the complement of Rebecca Purple is #999433, close to the named color Olive.

Rebecca Purple contrast and accessibility

WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Rebecca Purple scores against white and black.

Contrast of Rebecca Purple with white and black
AgainstRatioAA normalAA largeAAA normalAAA large
White (#ffffff) 8.41:1 ✓ Pass ✓ Pass ✓ Pass ✓ Pass
Black (#000000) 2.50:1 ✕ Fail ✕ Fail ✕ Fail ✕ Fail
Aa White text on Rebecca Purple8.41:1
Aa Black text on Rebecca Purple2.50:1

Rebecca Purple and color blindness

These are approximate previews of how Rebecca Purple can look with the main types of color vision deficiency.

Protanopia #004C9C

Rebecca Purple changes noticeably.

Deuteranopia #0F4D97

Rebecca Purple changes noticeably.

Tritanopia #5C4961

Rebecca Purple changes noticeably.

Achromatopsia #4D4D4D

Rebecca Purple changes noticeably.

Gradients with Rebecca Purple

Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.

Rebecca Purple to a lighter tint

background: linear-gradient(135deg, #663399 0%, #c2add6 100%);

Rebecca Purple to its analogous neighbour

background: linear-gradient(135deg, #663399 0%, #993399 100%);

Rebecca Purple to its complement

background: linear-gradient(135deg, #663399 0%, #669933 100%);

Colors similar to Rebecca Purple

How each close match differs from Rebecca Purple.

More purple colors →

Use Rebecca Purple in code

CSS
.element {
  color: #663399;
  background-color: #663399;
  border-color: rebeccapurple;   /* rebeccapurple is a valid CSS color name */
}
CSS variable
:root {
  --color-rebecca-purple: #663399;
}
Tailwind
<!-- Tailwind arbitrary values -->
<div class="bg-[#663399] text-[#663399] border-[#663399]"></div>

/* Tailwind v4 theme color */
@theme {
  --color-rebecca-purple: #663399;
}

Rebecca Purple questions

What is the hex code for Rebecca Purple?

The hex code for Rebecca Purple is #663399. In RGB that is rgb(102, 51, 153), and in HSL it is hsl(270, 50%, 40%).

What is the complementary color of Rebecca Purple?

On the RGB (screen) color wheel, the complement of Rebecca Purple is #669933, which is close to Olive Drab. On the artist’s RYB wheel it is #999433, close to Olive.

Should I use white or black text on Rebecca Purple?

White text. It has a contrast ratio of 8.41:1 against Rebecca Purple, which is WCAG AAA. The other option scores 2.50:1.

Is Rebecca Purple accessible as a text color on white?

Yes. Rebecca Purple on white scores 8.41:1, which passes WCAG AA for normal text (4.5:1) and AAA (7:1).

What are darker and lighter shades of Rebecca Purple?

Mixing Rebecca Purple with black gives #52297A, #3D1F5C, #29143D, #140A1F (20% to 80% black). Mixing it with white gives #855CAD, #A385C2, #C2ADD6, #E0D6EB (20% to 80% white).

More color tools