CSS color names · Pinks

Pink color: hex #ffc0cb, RGB and HSL

Pink is the CSS keyword pink, hex #ffc0cb, rgb(255, 192, 203), hsl(350, 100%, 88%). It is a light, fully saturated red in the pinks family. Below: the colors that go with it, its tints and shades, how it reads as text, and a complete interface palette built from it.

CSS name
pink
Hex
#ffc0cb
RGB
rgb(255, 192, 203)
HSL
hsl(350, 100%, 88%)
On white
1.54:1 — fails AA; use as a fill, not text
On black
13.65:1 — passes AA for body text
.example {
  color: pink;          /* keyword */
  color: #ffc0cb;          /* hex */
  color: rgb(255, 192, 203); /* rgb */
  color: hsl(350, 100%, 88%); /* hsl */
}

What colors go with pink

Each match keeps pink's saturation and lightness and rotates only the hue, so the relationship is the wheel's and nothing else. Any of these can be an accent beside pink as the primary; the harmony guides explain which rule suits which interface.

Complementary

The opposite hue, 180° away — the strongest contrast, best kept to one accent per screen.

#c0fff4

Split-complementary

The two neighbors of the complement, at 150° and 210° — most of the contrast with less tension, and two accents instead of one.

#c0ffd5
#c0eaff

Triadic

Two hues at 120° and 240° — three evenly spaced signals, the scheme charts and category colors want.

#cbffc0
#c0cbff

Analogous

The neighbors at −30° and +30° — calm and cohesive, with emphasis coming from weight and size rather than hue.

#ffc0ea
#ffd5c0

Tints and shades of pink

Tints add lightness toward white; shades remove it toward black. The hue and saturation stay fixed, so every step still reads as pink — these are the hover, pressed, disabled and surface variants a single brand color needs.

Tints (lighter)

#ffcad4
#ffd5dc
#ffdfe5
#ffeaee
#fff4f6

Shades (darker)

#ff758e
#ff2b50
#e00027
#95001a
#4b000d

A UI color palette built from pink

The eight semantic roles an interface actually uses, derived from pink as the primary with the split-complementary rule: secondary and accent rotate around the wheel, and the five neutrals take the hue at lightness steps tuned for light and dark mode. This is the same derivation the palette generator runs — open it there to change the rule, drag the anchors, or export the set as CSS variables.

Light mode
primary
#ffc0cb
secondary
#c0ffd5
accent
#c0eaff
background
#fdfcfc
surface
#f7f3f3
text
#221114
muted
#8f5660
border
#ecdfe1
Dark mode
primary
#ffc0cb
secondary
#c0ffd5
accent
#c0eaff
background
#1b0e10
surface
#281519
text
#f6f3f4
muted
#b8949a
border
#49272d

Using pink in an interface

Pinks carry warmth without red's alarm, which makes hot pink and deep pink strong accent colors for consumer and creative products. The pale pinks work as tinted surfaces; the violet-reds are dark enough to carry text on white. Whichever role pink takes, define it once as a token rather than repeating the keyword: the semantic palette guide covers the eight roles, and the guides to complementary, triadic and the other color schemes explain how to weight the matches above.

What is the hex code for Pink?
Pink is #ffc0cb. In CSS the keyword pink, the hex #ffc0cb, rgb(255, 192, 203) and hsl(350, 100%, 88%) all paint the same color.
What colors go with Pink?
Its complement is #c0fff4, the split-complementary pair is #c0ffd5 and #c0eaff, the triadic partners are #cbffc0 and #c0cbff, and the analogous neighbors are #ffc0ea and #ffd5c0. In an interface, use Pink for most colored elements and one of these for a single accent, at roughly an 80/20 split.
What is the opposite of Pink on the color wheel?
The opposite (complementary) color is #c0fff4, the same saturation and lightness rotated 180° around the HSL wheel. Complementary pairs give the strongest contrast, which is why the complement should be used sparingly rather than at equal weight.
Can I use Pink for text?
Pink as text on white has a contrast ratio of 1.54:1, which fails WCAG AA for body text (4.5:1) and for large text (3:1). On black it is 13.65:1, which passes for body text. Use it as text on dark surfaces, or as a fill with dark text on top.

Similar named colors

More pinks

We'd like to use Google cookies to understand how Nodlume is used and to measure our advertising. Nothing loads until you choose, and declining does not affect anything in the app.