Pink hex code

The hex code for pink is #FFC0CB, or rgb(255, 192, 203). CSS also accepts the keyword pink.

#FFC0CB
HEX#FFC0CB
RGBrgb(255, 192, 203)
HSLhsl(350, 100%, 88%)
HSV / HSBhsv(350, 25%, 100%)
OKLCHoklch(86.77% 0.0735 7.09)
CMYKcmyk(0%, 25%, 20%, 0%)
HEX, 50% opacity#FFC0CB80
RGB, 50% opacityrgb(255 192 203 / 50%)
CSS namepink
Defined inCSS Color 3 (from the X11 color names)

About pink

CSS pink (#FFC0CB) is a pale, soft pink. White text on it reaches only 1.54:1, so it works best as a background behind dark text.

For stronger pinks, CSS also has hotpink (#FF69B4) and deeppink (#FF1493). lightpink (#FFB6C1) is, despite its name, slightly darker than pink, one of several naming quirks inherited from the X11 color list.

Shades and tints of pink

Pink lands on the 200 step. The steps follow a lightness curve modeled on Tailwind CSS's default palette; build your own in the Tailwind color generator. For pink mixed with white, black or gray in even steps, use the tint and shade generator.

50#FFF4F6100#FFE8EC200#FFC0CB300#FDAFBE400#F2879E500#E76C89600#C84D6D700#A63E59800#87344A900#6D303E950#401B23

Colors that go with pink

Partner hues are picked on the OKLCH color wheel at a mid lightness, because pink itself is very light.

Complementary: the opposite hue

#FFC0CB#95DED6

Open in the palette generator · Compare the screen and painter's complements of pink

Analogous: neighboring hues 30° either side

#FFC0CB#EEBCDF#F9BEAC

Open in the palette generator · See analogous and monochromatic colors of pink on three wheels

Triadic: three hues 120° apart

#FFC0CB#C1D7A4#A7D3FC

Open in the palette generator

Split complementary: the two hues beside the complement

#FFC0CB#A6DDBB#96DAED

Open in the palette generator

Text on pink

White text on pink: 1.54:1
Black text on pink: 13.65:1
TextRatioAA normalAA largeAAA normal
White1.54:1FailFailFail
Black13.65:1PassPassPass

The ratio is the same either way round, so pink text on a white background is also 1.54:1. Check other pairs in the color contrast checker.

Similar named colors

The CSS named colors closest to pink, by deltaE OK distance.

lightpink #FFB6C1thistle #D8BFD8lightgray #D3D3D3peachpuff #FFDAB9gainsboro #DCDCDCmistyrose #FFE4E1

See all 148 on the color names page.

Closest Tailwind CSS colors

red-200 v4: red-200, #FFC9C9, deltaE OK 0.025

red-200 v3: red-200, #FECACA, deltaE OK 0.026

In Tailwind CSS v4 it is red-200 (#FFC9C9), and in v3 red-200 (#FECACA). For the exact color, use an arbitrary value such as bg-[#ffc0cb]. A deltaE OK of around 0.02 is roughly the smallest difference most people notice side by side. Browse every shade on the Tailwind CSS colors page.

Pink with color vision deficiency

An approximation of how pink may look with protanopia, deuteranopia and tritanopia (simulated with Machado, Oliveira and Fernandes, 2009), and with achromatopsia, shown as a gray of the same luminance.

protanopia #C9CACBdeuteranopia #D8D5CAtritanopia #FFBCC4achromatopsia #D0D0D0

Test a whole palette or image in the color blindness simulator.

Using pink in code

.example {
  color: pink;                 /* named color */
  background-color: #ffc0cb;  /* hex */
  border-color: rgb(255, 192, 203);
}

Frequently asked questions

What is the hex code for pink?
#FFC0CB. CSS also accepts the keyword pink, which means the same color.
What is pink in RGB?
rgb(255, 192, 203). In HSL it is hsl(350, 100%, 88%), and in OKLCH oklch(86.77% 0.0735 7.09).
What text color goes on pink?
Black text has the higher contrast on #FFC0CB: 13.65:1, which meets AAA for all text. White text reaches 1.54:1.
What is the closest Tailwind color to pink?
In Tailwind CSS v4 it is red-200 (#FFC9C9), and in v3 red-200 (#FECACA). For the exact color, use an arbitrary value such as bg-[#ffc0cb].
How do I make pink transparent?
Add an alpha value. Half-transparent pink is #FFC0CB80 as 8-digit HEX (80 is 128 out of 255) or rgb(255 192 203 / 50%).