Skip to content

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.

mist-50#F9FBFB

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

Color codes for mist-50
Tailwind v4 token--color-mist-50
OKLCH (source value)oklch(98.7% 0.002 197.1)
HEX#F9FBFB
RGBrgb(249, 251, 251)
HSLhsl(180, 20%, 98%)
HWBhwb(180 98% 2%)
CMYK (naive, no ICC profile)cmyk(1%, 0%, 0%, 2%)
Decimal16,382,971
Utility classesbg-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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on mist-5020.21:1PassPassPassPass103.4
White text on mist-501.03:1FailFailFailFail0.0
Mist-50 text on white1.03:1FailFailFailFail0.0
Mist-50 text on black20.21:1PassPassPassPass−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)

  1. 5%
    #f9fbfb
  2. 15%
    #fafcfc
  3. 25%
    #fbfcfc
  4. 35%
    #fbfcfc
  5. 45%
    #fcfdfd
  6. 55%
    #fcfdfd
  7. 65%
    #fdfefe
  8. 75%
    #fefefe
  9. 85%
    #fefefe
  10. 95%
    #ffffff

Shades (mixed with black)

  1. 5%
    #edeeee
  2. 15%
    #d4d5d5
  3. 25%
    #bbbcbc
  4. 35%
    #a2a3a3
  5. 45%
    #898a8a
  6. 55%
    #707171
  7. 65%
    #575858
  8. 75%
    #3e3f3f
  9. 85%
    #252626
  10. 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.

Color harmonies
HarmonyRotationColor
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

Nearest CSS named colors
ColorHEXΔE OK
snow#fffafa0.8
ghostwhite#f8f8ff1.1
mintcream#f5fffa1.2

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
gray-50#f9fafb0.3
zinc-50#fafafa0.3
neutral-50#fafafa0.3

Code snippets

Tailwind CSS
<div class="bg-mist-50 text-black">...</div>
<p class="text-mist-50 border-mist-50">...</p>
CSS
.element {
  color: var(--color-mist-50);
  background-color: oklch(98.7% 0.002 197.1);
  border-color: #f9fbfb;
  outline-color: rgb(249 251 251);
}
SwiftUI
import SwiftUI

extension Color {
  static let mist50 = Color(red: 0.976, green: 0.984, blue: 0.984)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const mist50 = Color(0xFFF9FBFB);
Android XML
<!-- 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.