Skip to content

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.

DeepPink#FF1493

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

Color codes for DeepPink
CSS keyworddeeppink
HEX#FF1493
RGBrgb(255, 20, 147)
HSLhsl(328, 100%, 54%)
HWBhwb(328 8% 0%)
OKLCHoklch(65.5% 0.261 356.9)
CMYK (naive, no ICC profile)cmyk(0%, 92%, 42%, 0%)
Decimal16,716,947
Hue familyPinks

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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on deeppink5.77:1PassPassFailPass42.5
White text on deeppink3.63:1FailPassFailFail−67.0
Deeppink text on white3.63:1FailPassFailFail61.5
Deeppink text on black5.77:1PassPassFailPass−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)

  1. 5%
    #ff2098
  2. 15%
    #ff37a3
  3. 25%
    #ff4fae
  4. 35%
    #ff66b9
  5. 45%
    #ff7ec4
  6. 55%
    #ff95ce
  7. 65%
    #ffadd9
  8. 75%
    #ffc4e4
  9. 85%
    #ffdcef
  10. 95%
    #fff3fa

Shades (mixed with black)

  1. 5%
    #f2138c
  2. 15%
    #d9117d
  3. 25%
    #bf0f6e
  4. 35%
    #a60d60
  5. 45%
    #8c0b51
  6. 55%
    #730942
  7. 65%
    #590733
  8. 75%
    #400525
  9. 85%
    #260316
  10. 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.

Color harmonies
HarmonyRotationColor
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

Nearest CSS named colors
ColorHEXΔE OK
hotpink#ff69b49.9
mediumvioletred#c7158511.3
palevioletred#db709312.6

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
pink-500#f6339a2.3
pink-600#e600766.6
rose-500#ff20568.8

Code snippets

CSS
.element {
  color: deeppink;
  background-color: #ff1493;
  border-color: rgb(255 20 147);
  outline-color: oklch(65.5% 0.261 356.9);
}
Tailwind CSS
<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 */
SwiftUI
import SwiftUI

extension Color {
  static let deeppink = Color(red: 1.000, green: 0.078, blue: 0.576)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const deeppink = Color(0xFFFF1493);
Android XML
<!-- 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.