Skip to content

Tailwind CSS v4 default palette

Tailwind pink-500: #F6339A

In Tailwind CSS v4, pink-500 is defined as --color-pink-500: oklch(65.6% 0.241 354.308), which is #F6339A in hex and rgb(246, 51, 154): a medium, vivid pink. In Tailwind v3, pink-500 was #EC4899.

pink-500#F6339A

In OKLCH, pink-500 has a lightness of 65.6%, chroma 0.241 and hue 354.3°.

The value fits inside sRGB, so the hex #F6339A represents it without loss on any screen.

In v3, pink-500 was #EC4899. The v4 value is ΔE OK 2.9 away; v4 is more saturated.

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

Color codes for pink-500

Color codes for pink-500
Tailwind v4 token--color-pink-500
OKLCH (source value)oklch(65.6% 0.241 354.308)
HEX#F6339A
RGBrgb(246, 51, 154)
HSLhsl(328, 92%, 58%)
HWBhwb(328 20% 4%)
CMYK (naive, no ICC profile)cmyk(0%, 79%, 37%, 4%)
Decimal16,135,066
Tailwind v3 hex#EC4899
Utility classesbg-pink-500, text-pink-500, border-pink-500

Tailwind pink scale

Contrast and accessibility

On pink-500, black text has a contrast ratio of 5.85:1 and passes AA for normal text; white text reaches 3.58: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-5005.85:1PassPassFailPass42.3
White text on pink-5003.58:1FailPassFailFail−67.2
Pink-500 text on white3.58:1FailPassFailFail61.8
Pink-500 text on black5.85:1PassPassFailPass−39.9

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #f63d9f
  2. 15%
    #f752a9
  3. 25%
    #f866b3
  4. 35%
    #f97abd
  5. 45%
    #fa8fc7
  6. 55%
    #fba3d2
  7. 65%
    #fcb8dc
  8. 75%
    #fdcce6
  9. 85%
    #fee0f0
  10. 95%
    #fff5fa

Shades (mixed with black)

  1. 5%
    #ea3092
  2. 15%
    #d12b83
  3. 25%
    #b92674
  4. 35%
    #a02164
  5. 45%
    #871c55
  6. 55%
    #6f1745
  7. 65%
    #561236
  8. 75%
    #3e0d27
  9. 85%
    #250817
  10. 95%
    #0c0308

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, pink-500's complementary color is #00AD8B (close to lightseagreen), its analogous colors are #D44AE1 and #FF313F, and its triadic partners are #909B00 and #009EE4. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#00ad8b
Analogous−30°, +30°#d44ae1#ff313f
Triadic+120°, +240°#909b00#009ee4
Split-complementary+150°, +210°#00b300#00a7b6

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-500 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
deeppink#ff14932.3
hotpink#ff69b48.5
mediumvioletred#c7158510.6

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
pink-600#e600767.0
pink-400#fb64b67.5
rose-500#ff20569.4

Code snippets

Tailwind CSS
<div class="bg-pink-500 text-black">...</div>
<p class="text-pink-500 border-pink-500">...</p>
CSS
.element {
  color: var(--color-pink-500);
  background-color: oklch(65.6% 0.241 354.308);
  border-color: #f6339a;
  outline-color: rgb(246 51 154);
}
SwiftUI
import SwiftUI

extension Color {
  static let pink500 = Color(red: 0.965, green: 0.200, blue: 0.604)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const pink500 = Color(0xFFF6339A);
Android XML
<!-- res/values/colors.xml -->
<color name="pink_500">#F6339A</color>

Frequently asked questions

What is the hex code for Tailwind pink-500?
In Tailwind CSS v4, pink-500 is oklch(65.6% 0.241 354.308), which converts to #F6339A (rgb(246, 51, 154)) in sRGB. In Tailwind v3 the same name was #EC4899.
What is the difference between pink-500 in Tailwind v3 and v4?
v3 used the hex #EC4899; v4 redefined the palette in OKLCH as oklch(65.6% 0.241 354.308). In v3, pink-500 was #EC4899. The v4 value is ΔE OK 2.9 away; v4 is more saturated.
How do I use pink-500 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-pink-500). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on pink-500?
White text on pink-500 has a contrast ratio of 3.58: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.85:1 and passes AA for normal text but not AAA. In APCA terms that is Lc −67.2 for white and Lc 42.3 for black.
Which CSS named color is closest to pink-500?
The closest is deeppink (#FF1493) at ΔE OK 2.3, followed by hotpink and mediumvioletred.

Last reviewed by Arielton Oberek.