CSS named color
DeepPink #FF1493
DeepPink (CSS keyword deeppink) has the hex code #FF1493 and the RGB value rgb(255, 20, 147): a medium, vivid pink.
A vivid, hot magenta-pink (#ff1493), more saturated than hotpink. It is one of the strongest pinks available as a keyword and is often used for attention-grabbing accents.
Color codes for DeepPink
| CSS keyword | deeppink |
|---|---|
| HEX | #FF1493 |
| RGB | rgb(255, 20, 147) |
| HSL | hsl(328, 100%, 54%) |
| HWB | hwb(328 8% 0%) |
| OKLCH | oklch(65.5% 0.261 356.9) |
| CMYK (naive, no ICC profile) | cmyk(0%, 92%, 42%, 0%) |
| Decimal | 16,716,947 |
| Hue family | Pinks |
Contrast and accessibility
On deeppink, black text has a contrast ratio of 5.77:1 and passes AA for normal text; white text reaches 3.63: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 deeppink | 5.77:1 | Pass | Pass | Fail | Pass | 42.5 |
| White text on deeppink | 3.63:1 | Fail | Pass | Fail | Fail | −67.0 |
| Deeppink text on white | 3.63:1 | Fail | Pass | Fail | Fail | 61.5 |
| Deeppink text on black | 5.77:1 | Pass | Pass | Fail | Pass | −40.1 |
Tints and shades
Each step mixes deeppink with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, deeppink, white 25%) in CSS.
Tints (mixed with white)
- 5%
#ff2098 - 15%
#ff37a3 - 25%
#ff4fae - 35%
#ff66b9 - 45%
#ff7ec4 - 55%
#ff95ce - 65%
#ffadd9 - 75%
#ffc4e4 - 85%
#ffdcef - 95%
#fff3fa
Shades (mixed with black)
- 5%
#f2138c - 15%
#d9117d - 25%
#bf0f6e - 35%
#a60d60 - 45%
#8c0b51 - 55%
#730942 - 65%
#590733 - 75%
#400525 - 85%
#260316 - 95%
#0d0107
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, deeppink's complementary color is #00AC8F (close to lightseagreen), its analogous colors are #DD3BE1 and #FF1D28, and its triadic partners are #8B9C00 and #009CE9. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #00ac8f |
| Analogous | −30°, +30° | #dd3be1#ff1d28 |
| Triadic | +120°, +240° | #8b9c00#009ce9 |
| Split-complementary | +150°, +210° | #00b224#00a6b9 |
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?
DeepPink sits on the boundary: its hue of 328° on the HSL wheel is a magenta, which reads warm next to blues and cool next to reds and oranges.
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
| Color | HEX | ΔE OK |
|---|---|---|
| hotpink | #ff69b4 | 9.9 |
| mediumvioletred | #c71585 | 11.3 |
| palevioletred | #db7093 | 12.6 |
Code snippets
.element {
color: deeppink;
background-color: #ff1493;
border-color: rgb(255 20 147);
outline-color: oklch(65.5% 0.261 356.9);
}<div class="bg-[#ff1493] text-black">...</div>
/* or register it once in your CSS (Tailwind v4) */
@theme {
--color-deeppink: #ff1493;
}
/* then use bg-deeppink, text-deeppink, border-deeppink */import SwiftUI
extension Color {
static let deeppink = Color(red: 1.000, green: 0.078, blue: 0.576)
}import androidx.compose.ui.graphics.Color
val Deeppink = Color(0xFFFF1493)import 'package:flutter/material.dart';
const deeppink = Color(0xFFFF1493);<!-- res/values/colors.xml -->
<color name="deeppink">#FF1493</color>Frequently asked questions
- What is the hex code for deeppink?
- The hex code for deeppink is #FF1493. The same color is rgb(255, 20, 147), hsl(328, 100%, 54%) and oklch(65.5% 0.261 356.9), and in CSS you can also write the keyword deeppink directly.
- Is deeppink a warm or cool color?
- DeepPink sits on the boundary: its hue of 328° on the HSL wheel is a magenta, which reads warm next to blues and cool next to reds and oranges.
- What colors go with deeppink?
- Rotating the hue in OKLCH while keeping lightness and chroma, deeppink's complementary color is #00AC8F (close to lightseagreen), its analogous colors are #DD3BE1 and #FF1D28, and its triadic partners are #8B9C00 and #009CE9. For text on top, black gives the higher contrast.
- Can you use white text on deeppink?
- White text on deeppink has a contrast ratio of 3.63:1, which passes AA only for large text (24 px, or 18.66 px bold, and up) under WCAG 2.2. Black text reaches 5.77:1 and passes AA for normal text but not AAA. In APCA terms that is Lc −67.0 for white and Lc 42.5 for black.
- What is the RGB value of deeppink?
- DeepPink is rgb(255, 20, 147): red 255, green 20 and blue 147 on the 0 to 255 scale, or 100.0%, 7.8% and 57.6%. As a decimal integer it is 16716947.
Last reviewed by Arielton Oberek.