CSS named color

Pink #FFC0CB

pink rgb(255, 192, 203)

Pink is a pale red with the hex code #FFC0CB, which converts to rgb(255, 192, 203). Open #FFC0CB in the converter to tweak it.

Pink color values

HEX#FFC0CB
HEX (shorthand)—
RGBrgb(255, 192, 203)
RGBArgba(255, 192, 203, 1)
8-digit HEX#FFC0CBFF
HSLhsl(350, 100%, 88%)
HSV / HSB350°, 25%, 100%
CMYK0%, 25%, 20%, 0%
RGB 0–11, 0.753, 0.796
Decimal16761035
CSS keywordpink

How #FFC0CB converts to RGB

Split the hex code into three pairs and read each pair as a base-16 number: FF → 255, C0 → 192, CB → 203. That gives rgb(255, 192, 203). The step-by-step guide explains the math.

Shades of Pink

Mixed toward black in 10% steps. Click a swatch to copy its hex.

Tints of Pink

Mixed toward white in 10% steps.

Color harmonies

Hue rotations of Pink 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

TextBackgroundRatioWCAG 2.x
White Pink 1.53:1Fail
Black Pink 13.65:1AAA

Use black text on a pink background. Test any other pair in the contrast checker; thresholds are explained in the WCAG contrast guide.

Use Pink in CSS

.element {
  color: pink;                         /* keyword */
  background-color: #FFC0CB;            /* hex */
  border-color: rgb(255 192 203 / 50%);    /* 50% transparent */
}

Need it semi-transparent? Append an alpha byte: #FFC0CB80 is Pink at 50% opacity. See RGBA & transparency.

Similar named colors

FAQ

What is the HEX code for Pink?

The CSS named color pink is #FFC0CB in hexadecimal. In CSS you can write color: pink; or color: #FFC0CB; — both produce the same pixel.

What is Pink in RGB?

Pink is rgb(255, 192, 203): red 255, green 192, blue 203 on the 0–255 scale. As normalized 0–1 floats that is (1, 0.753, 0.796).

Is white or black text more readable on Pink?

Black text is more readable. White on #FFC0CB has a contrast ratio of 1.53:1 (Fail), black on #FFC0CB has 13.65:1 (AAA). WCAG AA needs 4.5:1 for normal text.

Copied!