Skip to content

CSS named color

Pink #FFC0CB

Pink (CSS keyword pink) has the hex code #FFC0CB and the RGB value rgb(255, 192, 203): a very light, muted pink.

Pink#FFC0CB

The color word pink comes from the flowers of the Dianthus genus, called pinks. CSS pink (#ffc0cb) is lighter than lightpink, a quirk the CSS Color 4 specification points out.

Color codes for Pink

Color codes for Pink
CSS keywordpink
HEX#FFC0CB
RGBrgb(255, 192, 203)
HSLhsl(350, 100%, 88%)
HWBhwb(350 75% 0%)
OKLCHoklch(86.8% 0.074 7.1)
CMYK (naive, no ICC profile)cmyk(0%, 25%, 20%, 0%)
Decimal16,761,035
Hue familyPinks

Contrast and accessibility

On pink, black text has a contrast ratio of 13.65:1 and passes AAA at any text size; white text reaches 1.53:1.

WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on pink13.65:1PassPassPassPass79.0
White text on pink1.53:1FailFailFailFail−28.1
Pink text on white1.53:1FailFailFailFail24.8
Pink text on black13.65:1PassPassPassPass−78.3

Tints and shades

Each step mixes pink with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, pink, white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #ffc3ce
  2. 15%
    #ffc9d3
  3. 25%
    #ffd0d8
  4. 35%
    #ffd6dd
  5. 45%
    #ffdce2
  6. 55%
    #ffe3e8
  7. 65%
    #ffe9ed
  8. 75%
    #ffeff2
  9. 85%
    #fff6f7
  10. 95%
    #fffcfc

Shades (mixed with black)

  1. 5%
    #f2b6c1
  2. 15%
    #d9a3ad
  3. 25%
    #bf9098
  4. 35%
    #a67d84
  5. 45%
    #8c6a70
  6. 55%
    #73565b
  7. 65%
    #594347
  8. 75%
    #403033
  9. 85%
    #261d1e
  10. 95%
    #0d0a0a

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, pink's complementary color is #9BE4DC (close to powderblue), its analogous colors are #F4C2E5 and #FFC3B2, and its triadic partners are #C6DDA9 and #ADD9FF. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#9be4dc
Analogous−30°, +30°#f4c2e5#ffc3b2
Triadic+120°, +240°#c6dda9#add9ff
Split-complementary+150°, +210°#ace3c0#9be0f3

Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.

Warm or cool?

Pink is a warm color: its hue is 350° on the HSL wheel, in the red, orange and yellow range (0° to about 70°, plus reds above 330°) that is conventionally called warm.

Nearest named and Tailwind colors

Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
lightpink#ffb6c12.4
thistle#d8bfd86.0
lightgray#d3d3d37.4

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
red-200#ffc9c92.5
rose-200#ffccd32.9
pink-200#fccee84.4

Code snippets

CSS
.element {
  color: pink;
  background-color: #ffc0cb;
  border-color: rgb(255 192 203);
  outline-color: oklch(86.8% 0.074 7.1);
}
Tailwind CSS
<div class="bg-[#ffc0cb] text-black">...</div>

/* or register it once in your CSS (Tailwind v4) */
@theme {
  --color-pink: #ffc0cb;
}
/* then use bg-pink, text-pink, border-pink */
SwiftUI
import SwiftUI

extension Color {
  static let pink = Color(red: 1.000, green: 0.753, blue: 0.796)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Pink = Color(0xFFFFC0CB)
Flutter
import 'package:flutter/material.dart';

const pink = Color(0xFFFFC0CB);
Android XML
<!-- res/values/colors.xml -->
<color name="pink">#FFC0CB</color>

Frequently asked questions

What is the hex code for pink?
The hex code for pink is #FFC0CB. The same color is rgb(255, 192, 203), hsl(350, 100%, 88%) and oklch(86.8% 0.074 7.1), and in CSS you can also write the keyword pink directly.
Is pink a warm or cool color?
Pink is a warm color: its hue is 350° on the HSL wheel, in the red, orange and yellow range (0° to about 70°, plus reds above 330°) that is conventionally called warm.
What colors go with pink?
Rotating the hue in OKLCH while keeping lightness and chroma, pink's complementary color is #9BE4DC (close to powderblue), its analogous colors are #F4C2E5 and #FFC3B2, and its triadic partners are #C6DDA9 and #ADD9FF. For text on top, black gives the higher contrast.
Can you use white text on pink?
White text on pink has a contrast ratio of 1.53:1, which fails AA even for large text under WCAG 2.2. Black text reaches 13.65:1 and passes both AA and AAA. In APCA terms that is Lc −28.1 for white and Lc 79.0 for black.
What is the RGB value of pink?
Pink is rgb(255, 192, 203): red 255, green 192 and blue 203 on the 0 to 255 scale, or 100.0%, 75.3% and 79.6%. As a decimal integer it is 16761035.

Last reviewed by Arielton Oberek.