Skip to content

Tailwind CSS v4 default palette

Tailwind pink-700: #C6005C

In Tailwind CSS v4, pink-700 is defined as --color-pink-700: oklch(52.5% 0.223 3.958), which is #C6005C in hex and rgb(198, 0, 92): a medium-dark, vivid red. In Tailwind v3, pink-700 was #BE185D.

pink-700#C6005C

In OKLCH, pink-700 has a lightness of 52.5%, chroma 0.223 and hue 4.0°.

This OKLCH value lies outside sRGB. The hex #C6005C is the sRGB fallback from the CSS Color 4 gamut mapping algorithm; on Display P3 screens browsers show a more saturated color, close to color(display-p3 0.7115 0.101 0.3582).

In v3, pink-700 was #BE185D. The v4 value is ΔE OK 2.4 away; v4 is more saturated.

Tailwind pink is a cool, bluish pink between fuchsia and rose.

Color codes for pink-700

Color codes for pink-700
Tailwind v4 token--color-pink-700
OKLCH (source value)oklch(52.5% 0.223 3.958)
HEX#C6005C
RGBrgb(198, 0, 92)
HSLhsl(332, 100%, 39%)
HWBhwb(332 0% 22%)
CMYK (naive, no ICC profile)cmyk(0%, 100%, 54%, 22%)
Decimal12,976,220
Display P3color(display-p3 0.7115 0.101 0.3582)
Tailwind v3 hex#BE185D
Utility classesbg-pink-700, text-pink-700, border-pink-700

Tailwind pink scale

Contrast and accessibility

On pink-700, white text has a contrast ratio of 5.90:1 and passes AA for normal text; black text reaches 3.55: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 pink-7003.55:1FailPassFailFail27.2
White text on pink-7005.90:1PassPassFailPass−82.2
Pink-700 text on white5.90:1PassPassFailPass76.9
Pink-700 text on black3.55:1FailPassFailFail−24.8

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #c90d64
  2. 15%
    #cf2674
  3. 25%
    #d44085
  4. 35%
    #da5995
  5. 45%
    #e073a5
  6. 55%
    #e58cb6
  7. 65%
    #eba6c6
  8. 75%
    #f1bfd6
  9. 85%
    #f6d9e7
  10. 95%
    #fcf2f7

Shades (mixed with black)

  1. 5%
    #bc0057
  2. 15%
    #a8004e
  3. 25%
    #950045
  4. 35%
    #81003c
  5. 45%
    #6d0033
  6. 55%
    #590029
  7. 65%
    #450020
  8. 75%
    #320017
  9. 85%
    #1e000e
  10. 95%
    #0a0005

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, pink-700's complementary color is #007F72 (close to teal), its analogous colors are #AF169E and #CB0000, and its triadic partners are #597700 and #006FBE. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#007f72
Analogous−30°, +30°#af169e#cb0000
Triadic+120°, +240°#597700#006fbe
Split-complementary+150°, +210°#00833b#007a92

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?

Tailwind pink-700 is a warm color: its hue is 332° 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
mediumvioletred#c715856.2
crimson#dc143c7.8
firebrick#b222229.5

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
rose-700#c700365.1
pink-600#e600767.3
pink-800#a3004c7.5

Code snippets

Tailwind CSS
<div class="bg-pink-700 text-white">...</div>
<p class="text-pink-700 border-pink-700">...</p>
CSS
.element {
  color: var(--color-pink-700);
  background-color: oklch(52.5% 0.223 3.958);
  border-color: #c6005c;
  outline-color: rgb(198 0 92);
}
SwiftUI
import SwiftUI

extension Color {
  static let pink700 = Color(red: 0.776, green: 0.000, blue: 0.361)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const pink700 = Color(0xFFC6005C);
Android XML
<!-- res/values/colors.xml -->
<color name="pink_700">#C6005C</color>

Frequently asked questions

What is the hex code for Tailwind pink-700?
In Tailwind CSS v4, pink-700 is oklch(52.5% 0.223 3.958), which converts to #C6005C (rgb(198, 0, 92)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #BE185D.
What is the difference between pink-700 in Tailwind v3 and v4?
v3 used the hex #BE185D; v4 redefined the palette in OKLCH as oklch(52.5% 0.223 3.958). In v3, pink-700 was #BE185D. The v4 value is ΔE OK 2.4 away; v4 is more saturated.
How do I use pink-700 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-pink-700). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on pink-700?
White text on pink-700 has a contrast ratio of 5.90:1, which passes AA for normal text but not AAA under WCAG 2.2. Black text reaches 3.55:1 and passes AA only for large text (24 px, or 18.66 px bold, and up). In APCA terms that is Lc −82.2 for white and Lc 27.2 for black.
Which CSS named color is closest to pink-700?
The closest is mediumvioletred (#C71585) at ΔE OK 6.2, followed by crimson and firebrick.

Last reviewed by Arielton Oberek.