Free Accessible CSS Gradient Generator

← All Colors
#FFC0CB Pink

Pink Hex Code #FFC0CB

Pink is a very light, moderate color with the hex code #FFC0CB. In RGB it is 255, 192, 203, and in HSL it is 350°, 100%, 88%. It is one of the 148 named colors in CSS, so you can write “pink” instead of the hex code.

HEX
#FFC0CB
RGB
rgb(255, 192, 203)
HSL
hsl(350, 100%, 88%)
HSV
hsv(350°, 25%, 100%)
CMYK
cmyk(0%, 25%, 20%, 0%)
CSS name
pink

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

About Pink

On a white background Pink has a contrast ratio of 1.54:1 (Fail), and on black 13.65:1 (AAA). Black text is the better choice on top of it.

It sits on the warm side of the color wheel, a range that tends to feel energetic and appears to advance toward the viewer.

Pink ranges from soft and gentle to bold and playful, depending on its lightness and saturation. It is common in beauty, fashion and lifestyle design.

Good to know: CSS pink (#ffc0cb) is a pale pink. For bolder pinks, see hotpink (#ff69b4) and deeppink (#ff1493).

Shades and tints of Pink

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

Color harmonies for Pink

These schemes are calculated from Pink 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 Pink is #C8FFC0, close to the named color Aquamarine.

Pink 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 Pink scores against white and black.

Contrast of Pink with white and black
AgainstRatioAA normalAA largeAAA normalAAA large
White (#ffffff) 1.54:1 ✕ Fail ✕ Fail ✕ Fail ✕ Fail
Black (#000000) 13.65:1 ✓ Pass ✓ Pass ✓ Pass ✓ Pass
Aa White text on Pink1.54:1
Aa Black text on Pink13.65:1

Pink and color blindness

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

Protanopia #C9CACB

Pink changes noticeably.

Deuteranopia #D8D5CA

Pink changes noticeably.

Tritanopia #FFBCC4

Pink looks almost the same.

Achromatopsia #D0D0D0

Pink changes noticeably.

Gradients with Pink

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

Pink to a lighter tint

background: linear-gradient(135deg, #ffc0cb 0%, #ffe6ea 100%);

Pink to its analogous neighbour

background: linear-gradient(135deg, #ffc0cb 0%, #ffd4c0 100%);

Pink to its complement

background: linear-gradient(135deg, #ffc0cb 0%, #c0fff4 100%);

Colors similar to Pink

How each close match differs from Pink.

More pink colors →

Use Pink in code

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

/* Tailwind v4 theme color */
@theme {
  --color-pink: #ffc0cb;
}

Pink questions

What is the hex code for Pink?

The hex code for Pink is #FFC0CB. In RGB that is rgb(255, 192, 203), and in HSL it is hsl(350, 100%, 88%).

What is the complementary color of Pink?

On the RGB (screen) color wheel, the complement of Pink is #C0FFF4, which is close to Pale Turquoise. On the artist’s RYB wheel it is #C8FFC0, close to Aquamarine.

Should I use white or black text on Pink?

Black text. It has a contrast ratio of 13.65:1 against Pink, which is WCAG AAA. The other option scores 1.54:1.

Is Pink accessible as a text color on white?

No. Pink on white scores 1.54:1, which is below the WCAG minimum of 3:1 even for large text.

What are darker and lighter shades of Pink?

Mixing Pink with black gives #CC9AA2, #99737A, #664D51, #332629 (20% to 80% black). Mixing it with white gives #FFCDD5, #FFD9E0, #FFE6EA, #FFF2F5 (20% to 80% white).

More color tools