Photo in the color Wisteria
Pictured: Wisteria, the closest color we have a photo of (#C9A0DC)
rgb(204, 153, 221)
#CC99DD

Somewhere in a Fairytale #CC99DD RGB Color Code

Name from the community color list.

Somewhere in a Fairytale (#CC99DD) is a moderately saturated, light purple. In RGB it is made of 80% red, 60% green and 87% blue (R 204, G 153, B 221). The blue channel is the strongest. In HSL it has a hue of 285°, 50% saturation and 73% lightness. Its relative luminance is 0.408, so black text is easier to read on top of it. For print, a rough CMYK match is 8% cyan, 31% magenta, 0% yellow and 13% black. Check it against your printer's ICC profile before you print. It is a cool color. It goes well with warm oranges and reds for contrast. For a calm, matching look, use nearby cool tones.

Open in color picker

Somewhere in a Fairytale color codes

#CC99DD in every common color format. Click a value to copy it.

FormatValueNotesCopy
HEX #CC99DD Valid CSS
RGB rgb(204, 153, 221) Valid CSS
HSL hsl(285, 50%, 73%) Valid CSS
HSV / HSB hsv(285, 31%, 87%) Not a CSS format
HWB hwb(285 60% 13%) Valid CSS
CMYK cmyk(8%, 31%, 0%, 13%) Approximate (no ICC profile)
OKLCH oklch(75.41% 0.1099 317.5) Valid CSS
OKLab oklab(75.41% 0.081 -0.0742) Valid CSS
CIELAB lab(69.93% 28.44 -27.15) D50, as in CSS
CIELCH lch(69.93% 39.32 316.34) Valid CSS
Display P3 color(display-p3 0.7694 0.608 0.8498) Valid CSS
XYZ (D65) color(xyz-d65 0.4934 0.4084 0.7369) Valid CSS
Decimal 13408733 Integer (0xRRGGBB)

CMYK here is a rough screen match without an ICC profile. See CMYK and print. Relative luminance: 0.4084. Nearest web-safe color: #CC99CC.

Mix Somewhere in a Fairytale with other colors

See what #CC99DD makes with red paint, under a green light, printed with cyan ink and in a digital blend with blue. Click a picture to change the colors and amounts in the color mixer.

Use Somewhere in a Fairytale in your code

Ready to paste into CSS, Sass, Tailwind, iOS, Android and Flutter. Click the icon to copy a line.

WhereCodeCopy
CSS variable--somewhere-in-a-fairytale: #CC99DD;
Sass variable$somewhere-in-a-fairytale: #CC99DD;
Tailwind CSS v4@theme { --color-somewhere-in-a-fairytale: #CC99DD; }
Tailwind CSS v3 configcolors: { 'somewhere-in-a-fairytale': '#CC99DD' }
SwiftUIColor(red: 0.8, green: 0.6, blue: 0.867)
UIKitUIColor(red: 0.8, green: 0.6, blue: 0.867, alpha: 1)
Android XML<color name="somewhere_in_a_fairytale">#FFCC99DD</color>
Flutter and Jetpack ComposeColor(0xFFCC99DD)

Accessibility and contrast

Black text works best on #CC99DD (9.17:1, AAA). Here is how #CC99DD does as a text color:

Large heading text
Body text at 16px. The quick brown fox jumps over the lazy dog.
2.29:1 on white
APCA Lc 45
Fails AATry #9565A5
Large heading text
Body text at 16px. The quick brown fox jumps over the lazy dog.
9.17:1 on black
APCA Lc -57
AAA

Check this color against any background in the contrast checker. WCAG ratios and APCA Lc values measure different things, so one can't stand in for the other. Learn more.

How people with color blindness see Somewhere in a Fairytale

#CC99DD next to its complement and its two triadic colors, as seen with each type of color blindness.

  • Normal visionhow most people see it
  • Protanopiano red cones, about 1% of men
  • Deuteranopiano green cones, the most common type
  • Tritanopiano blue cones, very rare
  • Achromatopsiano color at all, very rare

#CC99DD stays easy to tell apart from its complement and triadic colors for the common types of color blindness. Try your own colors in the color blindness simulator.

Somewhere in a Fairytale in a user interface

A sample app screen with #CC99DD as the main color, on a light and a dark theme.

Light theme

Dark theme

Buttons and bars use #CC99DD as it is. On the light theme, #CC99DD is too hard to read as text (2.29:1), so links, the badge and outline text use #9565A5 there (4.48:1). Build a full color scheme around it in the UI color preview.

Color harmonies for Somewhere in a Fairytale

These schemes turn the hue of #CC99DD around the color wheel. Each swatch links to its own page.

Complementary

Two colors on opposite sides of the wheel. This gives the most contrast.

Open palette

Analogous

Hues that sit next to each other and look good together.

Open palette

Triadic

Three hues spaced evenly around the wheel. Bold, but still balanced.

Open palette

Split complementary

A base color plus the two hues on each side of its opposite. Strong contrast that clashes less.

Open palette

Tetradic (rectangle)

Two pairs of opposite colors. Let one color lead and use the others less.

Open palette

Square

Four hues 90° apart, spread evenly around the wheel.

Open palette

Monochromatic

One hue at different levels of lightness and saturation.

Open palette

Gradients with Somewhere in a Fairytale

Four CSS gradients made from #CC99DD. Copy the code, or open one in the gradient generator to change it.

Soft tint

From a pale tint to the full color.

background: linear-gradient(90deg, #F5EAF9, #CC99DD);

Edit in the gradient generator

Deep shade

The color fading into a dark shade.

background: linear-gradient(180deg, #CC99DD, #37273D);

Edit in the gradient generator

Analogous

Its two neighbors on the color wheel.

background: linear-gradient(135deg, #AA99DD, #CC99DD, #DD99CC);

Edit in the gradient generator

Triadic

A bold blend with a triadic color, through a clean middle.

background: linear-gradient(135deg, #CC99DD, #D4B4BE, #DDCC99);

Edit in the gradient generator

Shades, tints and tones of Somewhere in a Fairytale

Shades are darker, tints are lighter and tones are grayer. We make them in OKLCH so the steps look even. Hover a step to see its code, or click it to open it.

Design system scale (50 to 950)

Somewhere in a Fairytale sits at step 400. Export the full scale as CSS variables or Tailwind tokens from the picker.

  1. 50
    FCF3FF
  2. 100
    F8E5FF
  3. 200
    EECDF9
  4. 300
    D9AFE7
  5. 400
    CC99DD
  6. 500
    A170B1
  7. 600
    855694
  8. 700
    6C4279
  9. 800
    553261
  10. 900
    3E2447
  11. 950
    251729

Closest RAL, Tailwind and CSS colors

The nearest match to #CC99DD in three color systems that designers and builders use.

ΔE is the distance in OKLab: under 2 is hard to see, over 10 is a clearly different color. Browse all RAL colors, the Tailwind palette or the 148 CSS color names. RAL values on screens are only a guide, so check a real color chart before you order paint.

The named colors that look closest to this one (ΔE in OKLab). Browse all shades of purple or search the color library.