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.
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
| CSS keyword | pink |
|---|---|
| HEX | #FFC0CB |
| RGB | rgb(255, 192, 203) |
| HSL | hsl(350, 100%, 88%) |
| HWB | hwb(350 75% 0%) |
| OKLCH | oklch(86.8% 0.074 7.1) |
| CMYK (naive, no ICC profile) | cmyk(0%, 25%, 20%, 0%) |
| Decimal | 16,761,035 |
| Hue family | Pinks |
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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on pink | 13.65:1 | Pass | Pass | Pass | Pass | 79.0 |
| White text on pink | 1.53:1 | Fail | Fail | Fail | Fail | −28.1 |
| Pink text on white | 1.53:1 | Fail | Fail | Fail | Fail | 24.8 |
| Pink text on black | 13.65:1 | Pass | Pass | Pass | Pass | −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)
- 5%
#ffc3ce - 15%
#ffc9d3 - 25%
#ffd0d8 - 35%
#ffd6dd - 45%
#ffdce2 - 55%
#ffe3e8 - 65%
#ffe9ed - 75%
#ffeff2 - 85%
#fff6f7 - 95%
#fffcfc
Shades (mixed with black)
- 5%
#f2b6c1 - 15%
#d9a3ad - 25%
#bf9098 - 35%
#a67d84 - 45%
#8c6a70 - 55%
#73565b - 65%
#594347 - 75%
#403033 - 85%
#261d1e - 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.
| Harmony | Rotation | Color |
|---|---|---|
| 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.
Code snippets
.element {
color: pink;
background-color: #ffc0cb;
border-color: rgb(255 192 203);
outline-color: oklch(86.8% 0.074 7.1);
}<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 */import SwiftUI
extension Color {
static let pink = Color(red: 1.000, green: 0.753, blue: 0.796)
}import androidx.compose.ui.graphics.Color
val Pink = Color(0xFFFFC0CB)import 'package:flutter/material.dart';
const pink = Color(0xFFFFC0CB);<!-- 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.