Skip to content

Tailwind CSS v4 default palette

Tailwind mist-300: #D0D6D8

In Tailwind CSS v4, mist-300 is defined as --color-mist-300: oklch(87.2% 0.007 219.6), which is #D0D6D8 in hex and rgb(208, 214, 216): a very light gray with a faint sky blue tint.

mist-300#D0D6D8

In OKLCH, mist-300 has a lightness of 87.2%, chroma 0.007 and hue 219.6°.

The value fits inside sRGB, so the hex #D0D6D8 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-300

Color codes for mist-300
Tailwind v4 token--color-mist-300
OKLCH (source value)oklch(87.2% 0.007 219.6)
HEX#D0D6D8
RGBrgb(208, 214, 216)
HSLhsl(195, 9%, 83%)
HWBhwb(195 82% 15%)
CMYK (naive, no ICC profile)cmyk(4%, 1%, 0%, 15%)
Decimal13,686,488
Utility classesbg-mist-300, text-mist-300, border-mist-300

Tailwind mist scale

Contrast and accessibility

On mist-300, black text has a contrast ratio of 14.29:1 and passes AAA at any text size; white text reaches 1.46: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-30014.29:1PassPassPassPass81.5
White text on mist-3001.46:1FailFailFailFail−25.3
Mist-300 text on white1.46:1FailFailFailFail22.2
Mist-300 text on black14.29:1PassPassPassPass−81.0

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #d2d8da
  2. 15%
    #d7dcde
  3. 25%
    #dce0e2
  4. 35%
    #e0e4e6
  5. 45%
    #e5e8ea
  6. 55%
    #eaeded
  7. 65%
    #eff1f1
  8. 75%
    #f3f5f5
  9. 85%
    #f8f9f9
  10. 95%
    #fdfdfd

Shades (mixed with black)

  1. 5%
    #c6cbcd
  2. 15%
    #b1b6b8
  3. 25%
    #9ca1a2
  4. 35%
    #878b8c
  5. 45%
    #727677
  6. 55%
    #5e6061
  7. 65%
    #494b4c
  8. 75%
    #343636
  9. 85%
    #1f2020
  10. 95%
    #0a0b0b

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, mist-300's complementary color is #D9D3D1 (close to lightgray), its analogous colors are #D0D6D6 and #D1D5D9, and its triadic partners are #D8D3D6 and #D6D5D0. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#d9d3d1
Analogous−30°, +30°#d0d6d6#d1d5d9
Triadic+120°, +240°#d8d3d6#d6d5d0
Split-complementary+150°, +210°#d9d3d4#d8d4d0

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-300 is close to neutral: its OKLCH chroma is only 0.007, so its temperature comes from context. The faint 195° 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
lightgray#d3d3d30.9
gainsboro#dcdcdc2.4
powderblue#b0e0e64.4

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
gray-300#d1d5dc0.6
zinc-300#d4d4d80.7
neutral-300#d4d4d40.7

Code snippets

Tailwind CSS
<div class="bg-mist-300 text-black">...</div>
<p class="text-mist-300 border-mist-300">...</p>
CSS
.element {
  color: var(--color-mist-300);
  background-color: oklch(87.2% 0.007 219.6);
  border-color: #d0d6d8;
  outline-color: rgb(208 214 216);
}
SwiftUI
import SwiftUI

extension Color {
  static let mist300 = Color(red: 0.816, green: 0.839, blue: 0.847)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const mist300 = Color(0xFFD0D6D8);
Android XML
<!-- res/values/colors.xml -->
<color name="mist_300">#D0D6D8</color>

Frequently asked questions

What is the hex code for Tailwind mist-300?
In Tailwind CSS v4, mist-300 is oklch(87.2% 0.007 219.6), which converts to #D0D6D8 (rgb(208, 214, 216)) in sRGB.
Is mist-300 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 #D0D6D8.
How do I use mist-300 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-mist-300). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on mist-300?
White text on mist-300 has a contrast ratio of 1.46:1, which fails AA even for large text under WCAG 2.2. Black text reaches 14.29:1 and passes both AA and AAA. In APCA terms that is Lc −25.3 for white and Lc 81.5 for black.
Which CSS named color is closest to mist-300?
The closest is lightgray (#D3D3D3) at ΔE OK 0.9, followed by gainsboro and powderblue.

Last reviewed by Arielton Oberek.