Skip to content

Tailwind CSS v4 default palette

Tailwind pink-300: #FDA5D5

In Tailwind CSS v4, pink-300 is defined as --color-pink-300: oklch(82.3% 0.12 346.018), which is #FDA5D5 in hex and rgb(253, 165, 213): a very light, moderately saturated pink. In Tailwind v3, pink-300 was #F9A8D4.

pink-300#FDA5D5

In OKLCH, pink-300 has a lightness of 82.3%, chroma 0.120 and hue 346.0°.

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

In v3, pink-300 was #F9A8D4. The v4 value is ΔE OK 1.0 away, below the point where most people can tell them apart; v4 is more saturated.

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

Color codes for pink-300

Color codes for pink-300
Tailwind v4 token--color-pink-300
OKLCH (source value)oklch(82.3% 0.12 346.018)
HEX#FDA5D5
RGBrgb(253, 165, 213)
HSLhsl(327, 96%, 82%)
HWBhwb(327 65% 1%)
CMYK (naive, no ICC profile)cmyk(0%, 35%, 16%, 1%)
Decimal16,623,061
Tailwind v3 hex#F9A8D4
Utility classesbg-pink-300, text-pink-300, border-pink-300

Tailwind pink scale

Contrast and accessibility

On pink-300, black text has a contrast ratio of 11.51:1 and passes AAA at any text size; white text reaches 1.82: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-30011.51:1PassPassPassPass70.0
White text on pink-3001.82:1FailFailFailFail−38.0
Pink-300 text on white1.82:1FailFailFailFail33.9
Pink-300 text on black11.51:1PassPassPassPass−68.7

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #fdaad7
  2. 15%
    #fdb3db
  3. 25%
    #febce0
  4. 35%
    #fec5e4
  5. 45%
    #fecee8
  6. 55%
    #fed7ec
  7. 65%
    #fee0f0
  8. 75%
    #ffe9f5
  9. 85%
    #fff2f9
  10. 95%
    #fffbfd

Shades (mixed with black)

  1. 5%
    #f09dca
  2. 15%
    #d78cb5
  3. 25%
    #be7ca0
  4. 35%
    #a46b8a
  5. 45%
    #8b5b75
  6. 55%
    #724a60
  7. 65%
    #593a4b
  8. 75%
    #3f2935
  9. 85%
    #261920
  10. 95%
    #0d080b

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, pink-300's complementary color is #6FDEB3 (close to turquoise), its analogous colors are #E4ADFA and #FFA4AA, and its triadic partners are #CFCA69 and #62D5FF. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#6fdeb3
Analogous−30°, +30°#e4adfa#ffa4aa
Triadic+120°, +240°#cfca69#62d5ff
Split-complementary+150°, +210°#a1d788#4eddde

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-300 sits on the boundary: its hue of 327° 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
plum#dda0dd5.7
lightpink#ffb6c15.8
pink#ffc0cb7.3

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
rose-300#ffa1ad5.4
fuchsia-300#f4a8ff6.2
red-300#ffa2a26.9

Code snippets

Tailwind CSS
<div class="bg-pink-300 text-black">...</div>
<p class="text-pink-300 border-pink-300">...</p>
CSS
.element {
  color: var(--color-pink-300);
  background-color: oklch(82.3% 0.12 346.018);
  border-color: #fda5d5;
  outline-color: rgb(253 165 213);
}
SwiftUI
import SwiftUI

extension Color {
  static let pink300 = Color(red: 0.992, green: 0.647, blue: 0.835)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const pink300 = Color(0xFFFDA5D5);
Android XML
<!-- res/values/colors.xml -->
<color name="pink_300">#FDA5D5</color>

Frequently asked questions

What is the hex code for Tailwind pink-300?
In Tailwind CSS v4, pink-300 is oklch(82.3% 0.12 346.018), which converts to #FDA5D5 (rgb(253, 165, 213)) in sRGB. In Tailwind v3 the same name was #F9A8D4.
What is the difference between pink-300 in Tailwind v3 and v4?
v3 used the hex #F9A8D4; v4 redefined the palette in OKLCH as oklch(82.3% 0.12 346.018). In v3, pink-300 was #F9A8D4. The v4 value is ΔE OK 1.0 away, below the point where most people can tell them apart; v4 is more saturated.
How do I use pink-300 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-pink-300). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on pink-300?
White text on pink-300 has a contrast ratio of 1.82:1, which fails AA even for large text under WCAG 2.2. Black text reaches 11.51:1 and passes both AA and AAA. In APCA terms that is Lc −38.0 for white and Lc 70.0 for black.
Which CSS named color is closest to pink-300?
The closest is plum (#DDA0DD) at ΔE OK 5.7, followed by lightpink and pink.

Last reviewed by Arielton Oberek.