Tailwind CSS v4 default palette
Tailwind mist-50: #F9FBFB
In Tailwind CSS v4, mist-50 is defined as --color-mist-50: oklch(98.7% 0.002 197.1), which is #F9FBFB in hex and rgb(249, 251, 251): a neutral near-white.
In OKLCH, mist-50 has a lightness of 98.7%, chroma 0.002 and hue 197.1°.
The value fits inside sRGB, so the hex #F9FBFB represents it without loss on any screen.
Tailwind mist is a tinted neutral added in v4.2: a cool gray with a slight blue-cyan cast. It has no v3 equivalent.
Color codes for mist-50
| Tailwind v4 token | --color-mist-50 |
|---|---|
| OKLCH (source value) | oklch(98.7% 0.002 197.1) |
| HEX | #F9FBFB |
| RGB | rgb(249, 251, 251) |
| HSL | hsl(180, 20%, 98%) |
| HWB | hwb(180 98% 2%) |
| CMYK (naive, no ICC profile) | cmyk(1%, 0%, 0%, 2%) |
| Decimal | 16,382,971 |
| Utility classes | bg-mist-50, text-mist-50, border-mist-50 |
Tailwind mist scale
Contrast and accessibility
On mist-50, black text has a contrast ratio of 20.21:1 and passes AAA at any text size; white text reaches 1.03: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 mist-50 | 20.21:1 | Pass | Pass | Pass | Pass | 103.4 |
| White text on mist-50 | 1.03:1 | Fail | Fail | Fail | Fail | 0.0 |
| Mist-50 text on white | 1.03:1 | Fail | Fail | Fail | Fail | 0.0 |
| Mist-50 text on black | 20.21:1 | Pass | Pass | Pass | Pass | −105.0 |
Tints and shades
Each step mixes var(--color-mist-50) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-mist-50), white 25%) in CSS.
Tints (mixed with white)
- 5%
#f9fbfb - 15%
#fafcfc - 25%
#fbfcfc - 35%
#fbfcfc - 45%
#fcfdfd - 55%
#fcfdfd - 65%
#fdfefe - 75%
#fefefe - 85%
#fefefe - 95%
#ffffff
Shades (mixed with black)
- 5%
#edeeee - 15%
#d4d5d5 - 25%
#bbbcbc - 35%
#a2a3a3 - 45%
#898a8a - 55%
#707171 - 65%
#575858 - 75%
#3e3f3f - 85%
#252626 - 95%
#0c0d0d
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, mist-50's complementary color is #FCFAFA (close to snow), its analogous colors are #F9FBFA and #F9FBFC, and its triadic partners are #FBFAFC and #FBFBF9. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #fcfafa |
| Analogous | −30°, +30° | #f9fbfa#f9fbfc |
| Triadic | +120°, +240° | #fbfafc#fbfbf9 |
| Split-complementary | +150°, +210° | #fcfafb#fcfafa |
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 mist-50 is close to neutral: its OKLCH chroma is only 0.002, so its temperature comes from context. It has no perceptible hue.
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 |
|---|---|---|
| snow | #fffafa | 0.8 |
| ghostwhite | #f8f8ff | 1.1 |
| mintcream | #f5fffa | 1.2 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| gray-50 | #f9fafb | 0.3 |
| zinc-50 | #fafafa | 0.3 |
| neutral-50 | #fafafa | 0.3 |
Code snippets
<div class="bg-mist-50 text-black">...</div>
<p class="text-mist-50 border-mist-50">...</p>.element {
color: var(--color-mist-50);
background-color: oklch(98.7% 0.002 197.1);
border-color: #f9fbfb;
outline-color: rgb(249 251 251);
}import SwiftUI
extension Color {
static let mist50 = Color(red: 0.976, green: 0.984, blue: 0.984)
}import androidx.compose.ui.graphics.Color
val Mist50 = Color(0xFFF9FBFB)import 'package:flutter/material.dart';
const mist50 = Color(0xFFF9FBFB);<!-- res/values/colors.xml -->
<color name="mist_50">#F9FBFB</color>Frequently asked questions
- What is the hex code for Tailwind mist-50?
- In Tailwind CSS v4, mist-50 is oklch(98.7% 0.002 197.1), which converts to #F9FBFB (rgb(249, 251, 251)) in sRGB.
- Is mist-50 available in Tailwind v3?
- No. The mist scale was added in Tailwind CSS v4.2. In v3 you can recreate it in tailwind.config.js under theme.extend.colors with the hex #F9FBFB.
- How do I use mist-50 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-mist-50). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on mist-50?
- White text on mist-50 has a contrast ratio of 1.03:1, which fails AA even for large text under WCAG 2.2. Black text reaches 20.21:1 and passes both AA and AAA. In APCA terms that is Lc 0.0 for white and Lc 103.4 for black.
- Which CSS named color is closest to mist-50?
- The closest is snow (#FFFAFA) at ΔE OK 0.8, followed by ghostwhite and mintcream.
Last reviewed by Arielton Oberek.