Tailwind CSS v4 default palette
Tailwind purple-50: #FAF5FF
In Tailwind CSS v4, purple-50 is defined as --color-purple-50: oklch(97.7% 0.014 308.299), which is #FAF5FF in hex and rgb(250, 245, 255): an off-white with a violet tint. In Tailwind v3, purple-50 was #FAF5FF.
In OKLCH, purple-50 has a lightness of 97.7%, chroma 0.014 and hue 308.3°.
The value fits inside sRGB, so the hex #FAF5FF represents it without loss on any screen.
In v3, purple-50 was #FAF5FF. The v4 value is ΔE OK 0.0 away, below the point where most people can tell them apart.
Tailwind purple is a redder, more magenta-leaning violet than violet, with very high chroma in its mid shades.
Color codes for purple-50
| Tailwind v4 token | --color-purple-50 |
|---|---|
| OKLCH (source value) | oklch(97.7% 0.014 308.299) |
| HEX | #FAF5FF |
| RGB | rgb(250, 245, 255) |
| HSL | hsl(270, 100%, 98%) |
| HWB | hwb(270 96% 0%) |
| CMYK (naive, no ICC profile) | cmyk(2%, 4%, 0%, 0%) |
| Decimal | 16,446,975 |
| Tailwind v3 hex | #FAF5FF |
| Utility classes | bg-purple-50, text-purple-50, border-purple-50 |
Tailwind purple scale
Contrast and accessibility
On purple-50, black text has a contrast ratio of 19.56:1 and passes AAA at any text size; white text reaches 1.07: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 purple-50 | 19.56:1 | Pass | Pass | Pass | Pass | 101.1 |
| White text on purple-50 | 1.07:1 | Fail | Fail | Fail | Fail | 0.0 |
| Purple-50 text on white | 1.07:1 | Fail | Fail | Fail | Fail | 0.0 |
| Purple-50 text on black | 19.56:1 | Pass | Pass | Pass | Pass | −102.5 |
Tints and shades
Each step mixes var(--color-purple-50) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-purple-50), white 25%) in CSS.
Tints (mixed with white)
- 5%
#faf6ff - 15%
#fbf7ff - 25%
#fbf8ff - 35%
#fcf9ff - 45%
#fcfaff - 55%
#fdfbff - 65%
#fdfcff - 75%
#fefdff - 85%
#fefeff - 95%
#ffffff
Shades (mixed with black)
- 5%
#eee9f2 - 15%
#d5d0d9 - 25%
#bcb8bf - 35%
#a39fa6 - 45%
#8a878c - 55%
#706e73 - 65%
#585659 - 75%
#3f3d40 - 85%
#262526 - 95%
#0d0c0d
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, purple-50's complementary color is #F5F9F0 (close to floralwhite), its analogous colors are #F5F7FF and #FEF4FB, and its triadic partners are #FEF6EE and #EEFBF9. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #f5f9f0 |
| Analogous | −30°, +30° | #f5f7ff#fef4fb |
| Triadic | +120°, +240° | #fef6ee#eefbf9 |
| Split-complementary | +150°, +210° | #faf8ed#f0fbf4 |
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 purple-50 is close to neutral: its OKLCH chroma is only 0.014, so its temperature comes from context. The faint 270° hue gives it a slightly cool cast.
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 |
|---|---|---|
| ghostwhite | #f8f8ff | 0.8 |
| aliceblue | #f0f8ff | 1.4 |
| lavenderblush | #fff0f5 | 1.6 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| fuchsia-50 | #fdf4ff | 0.4 |
| violet-50 | #f5f3ff | 0.9 |
| pink-50 | #fdf2f8 | 1.0 |
Code snippets
<div class="bg-purple-50 text-black">...</div>
<p class="text-purple-50 border-purple-50">...</p>.element {
color: var(--color-purple-50);
background-color: oklch(97.7% 0.014 308.299);
border-color: #faf5ff;
outline-color: rgb(250 245 255);
}import SwiftUI
extension Color {
static let purple50 = Color(red: 0.980, green: 0.961, blue: 1.000)
}import androidx.compose.ui.graphics.Color
val Purple50 = Color(0xFFFAF5FF)import 'package:flutter/material.dart';
const purple50 = Color(0xFFFAF5FF);<!-- res/values/colors.xml -->
<color name="purple_50">#FAF5FF</color>Frequently asked questions
- What is the hex code for Tailwind purple-50?
- In Tailwind CSS v4, purple-50 is oklch(97.7% 0.014 308.299), which converts to #FAF5FF (rgb(250, 245, 255)) in sRGB. In Tailwind v3 the same name was #FAF5FF.
- What is the difference between purple-50 in Tailwind v3 and v4?
- v3 used the hex #FAF5FF; v4 redefined the palette in OKLCH as oklch(97.7% 0.014 308.299). In v3, purple-50 was #FAF5FF. The v4 value is ΔE OK 0.0 away, below the point where most people can tell them apart.
- How do I use purple-50 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-purple-50). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on purple-50?
- White text on purple-50 has a contrast ratio of 1.07:1, which fails AA even for large text under WCAG 2.2. Black text reaches 19.56:1 and passes both AA and AAA. In APCA terms that is Lc 0.0 for white and Lc 101.1 for black.
- Which CSS named color is closest to purple-50?
- The closest is ghostwhite (#F8F8FF) at ΔE OK 0.8, followed by aliceblue and lavenderblush.
Last reviewed by Arielton Oberek.