Tailwind CSS v4 default palette
Tailwind purple-100: #F3E8FF
In Tailwind CSS v4, purple-100 is defined as --color-purple-100: oklch(94.6% 0.033 307.174), which is #F3E8FF in hex and rgb(243, 232, 255): an off-white with a violet tint. In Tailwind v3, purple-100 was #F3E8FF.
In OKLCH, purple-100 has a lightness of 94.6%, chroma 0.033 and hue 307.2°.
The value fits inside sRGB, so the hex #F3E8FF represents it without loss on any screen.
In v3, purple-100 was #F3E8FF. The v4 value is ΔE OK 0.1 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-100
| Tailwind v4 token | --color-purple-100 |
|---|---|
| OKLCH (source value) | oklch(94.6% 0.033 307.174) |
| HEX | #F3E8FF |
| RGB | rgb(243, 232, 255) |
| HSL | hsl(269, 100%, 95%) |
| HWB | hwb(269 91% 0%) |
| CMYK (naive, no ICC profile) | cmyk(5%, 9%, 0%, 0%) |
| Decimal | 15,984,895 |
| Tailwind v3 hex | #F3E8FF |
| Utility classes | bg-purple-100, text-purple-100, border-purple-100 |
Tailwind purple scale
Contrast and accessibility
On purple-100, black text has a contrast ratio of 17.79:1 and passes AAA at any text size; white text reaches 1.17: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-100 | 17.79:1 | Pass | Pass | Pass | Pass | 94.9 |
| White text on purple-100 | 1.17:1 | Fail | Fail | Fail | Fail | −10.2 |
| Purple-100 text on white | 1.17:1 | Fail | Fail | Fail | Fail | 8.7 |
| Purple-100 text on black | 17.79:1 | Pass | Pass | Pass | Pass | −95.6 |
Tints and shades
Each step mixes var(--color-purple-100) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-purple-100), white 25%) in CSS.
Tints (mixed with white)
- 5%
#f4e9ff - 15%
#f5ebff - 25%
#f6eeff - 35%
#f7f0ff - 45%
#f8f2ff - 55%
#faf5ff - 65%
#fbf7ff - 75%
#fcf9ff - 85%
#fdfcff - 95%
#fefeff
Shades (mixed with black)
- 5%
#e7dcf2 - 15%
#cfc5d9 - 25%
#b6aebf - 35%
#9e97a6 - 45%
#86808c - 55%
#6d6873 - 65%
#555159 - 75%
#3d3a40 - 85%
#242326 - 95%
#0c0c0d
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, purple-100's complementary color is #E7F2DA (close to beige), its analogous colors are #E7ECFF and #FDE5F5, and its triadic partners are #FDEAD6 and #D6F5F1. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #e7f2da |
| Analogous | −30°, +30° | #e7ecff#fde5f5 |
| Triadic | +120°, +240° | #fdead6#d6f5f1 |
| Split-complementary | +150°, +210° | #f3eed5#dcf4e5 |
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-100 is a cool color: its hue is 269° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.
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 |
|---|---|---|
| lavender | #e6e6fa | 2.0 |
| lavenderblush | #fff0f5 | 3.3 |
| mistyrose | #ffe4e1 | 4.0 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| violet-100 | #ede9fe | 0.8 |
| fuchsia-100 | #fae8ff | 1.0 |
| pink-100 | #fce7f3 | 1.9 |
Code snippets
<div class="bg-purple-100 text-black">...</div>
<p class="text-purple-100 border-purple-100">...</p>.element {
color: var(--color-purple-100);
background-color: oklch(94.6% 0.033 307.174);
border-color: #f3e8ff;
outline-color: rgb(243 232 255);
}import SwiftUI
extension Color {
static let purple100 = Color(red: 0.953, green: 0.910, blue: 1.000)
}import androidx.compose.ui.graphics.Color
val Purple100 = Color(0xFFF3E8FF)import 'package:flutter/material.dart';
const purple100 = Color(0xFFF3E8FF);<!-- res/values/colors.xml -->
<color name="purple_100">#F3E8FF</color>Frequently asked questions
- What is the hex code for Tailwind purple-100?
- In Tailwind CSS v4, purple-100 is oklch(94.6% 0.033 307.174), which converts to #F3E8FF (rgb(243, 232, 255)) in sRGB. In Tailwind v3 the same name was #F3E8FF.
- What is the difference between purple-100 in Tailwind v3 and v4?
- v3 used the hex #F3E8FF; v4 redefined the palette in OKLCH as oklch(94.6% 0.033 307.174). In v3, purple-100 was #F3E8FF. The v4 value is ΔE OK 0.1 away, below the point where most people can tell them apart.
- How do I use purple-100 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-purple-100). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on purple-100?
- White text on purple-100 has a contrast ratio of 1.17:1, which fails AA even for large text under WCAG 2.2. Black text reaches 17.79:1 and passes both AA and AAA. In APCA terms that is Lc −10.2 for white and Lc 94.9 for black.
- Which CSS named color is closest to purple-100?
- The closest is lavender (#E6E6FA) at ΔE OK 2.0, followed by lavenderblush and mistyrose.
Last reviewed by Arielton Oberek.