Skip to content

Tailwind CSS v4 default palette

Tailwind mist-400: #9CA8AB

In Tailwind CSS v4, mist-400 is defined as --color-mist-400: oklch(72.3% 0.014 214.4), which is #9CA8AB in hex and rgb(156, 168, 171): a light, grayish sky blue.

mist-400#9CA8AB

In OKLCH, mist-400 has a lightness of 72.3%, chroma 0.014 and hue 214.4°.

The value fits inside sRGB, so the hex #9CA8AB 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-400

Color codes for mist-400
Tailwind v4 token--color-mist-400
OKLCH (source value)oklch(72.3% 0.014 214.4)
HEX#9CA8AB
RGBrgb(156, 168, 171)
HSLhsl(192, 8%, 64%)
HWBhwb(192 61% 33%)
CMYK (naive, no ICC profile)cmyk(9%, 2%, 0%, 33%)
Decimal10,266,795
Utility classesbg-mist-400, text-mist-400, border-mist-400

Tailwind mist scale

Contrast and accessibility

On mist-400, black text has a contrast ratio of 8.60:1 and passes AAA at any text size; white text reaches 2.44: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-4008.60:1PassPassPassPass55.9
White text on mist-4002.44:1FailFailFailFail−53.1
Mist-400 text on white2.44:1FailFailFailFail48.1
Mist-400 text on black8.60:1PassPassPassPass−53.9

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #a1acaf
  2. 15%
    #abb5b8
  3. 25%
    #b5bec0
  4. 35%
    #bfc6c8
  5. 45%
    #c9cfd1
  6. 55%
    #d2d8d9
  7. 65%
    #dce1e2
  8. 75%
    #e6e9ea
  9. 85%
    #f0f2f2
  10. 95%
    #fafbfb

Shades (mixed with black)

  1. 5%
    #94a0a2
  2. 15%
    #858f91
  3. 25%
    #757e80
  4. 35%
    #656d6f
  5. 45%
    #565c5e
  6. 55%
    #464c4d
  7. 65%
    #373b3c
  8. 75%
    #272a2b
  9. 85%
    #17191a
  10. 95%
    #080809

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, mist-400's complementary color is #AEA3A0 (close to darkgray), its analogous colors are #9CA9A6 and #9EA7AE, and its triadic partners are #ABA2A9 and #A8A69C. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#aea3a0
Analogous−30°, +30°#9ca9a6#9ea7ae
Triadic+120°, +240°#aba2a9#a8a69c
Split-complementary+150°, +210°#aea2a4#aca49d

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-400 is close to neutral: its OKLCH chroma is only 0.014, so its temperature comes from context. The faint 192° 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

Nearest CSS named colors
ColorHEXΔE OK
darkgray#a9a9a91.8
rosybrown#bc8f8f7.5
darkseagreen#8fbc8f8.1

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
neutral-400#a1a1a12.1
gray-400#99a1af2.3
zinc-400#9f9fa92.5

Code snippets

Tailwind CSS
<div class="bg-mist-400 text-black">...</div>
<p class="text-mist-400 border-mist-400">...</p>
CSS
.element {
  color: var(--color-mist-400);
  background-color: oklch(72.3% 0.014 214.4);
  border-color: #9ca8ab;
  outline-color: rgb(156 168 171);
}
SwiftUI
import SwiftUI

extension Color {
  static let mist400 = Color(red: 0.612, green: 0.659, blue: 0.671)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const mist400 = Color(0xFF9CA8AB);
Android XML
<!-- res/values/colors.xml -->
<color name="mist_400">#9CA8AB</color>

Frequently asked questions

What is the hex code for Tailwind mist-400?
In Tailwind CSS v4, mist-400 is oklch(72.3% 0.014 214.4), which converts to #9CA8AB (rgb(156, 168, 171)) in sRGB.
Is mist-400 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 #9CA8AB.
How do I use mist-400 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-mist-400). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on mist-400?
White text on mist-400 has a contrast ratio of 2.44:1, which fails AA even for large text under WCAG 2.2. Black text reaches 8.60:1 and passes both AA and AAA. In APCA terms that is Lc −53.1 for white and Lc 55.9 for black.
Which CSS named color is closest to mist-400?
The closest is darkgray (#A9A9A9) at ΔE OK 1.8, followed by rosybrown and darkseagreen.

Last reviewed by Arielton Oberek.