Skip to content

Tailwind CSS v4 default palette

Tailwind neutral-100: #F5F5F5

In Tailwind CSS v4, neutral-100 is defined as --color-neutral-100: oklch(97% 0 none), which is #F5F5F5 in hex and rgb(245, 245, 245): a neutral near-white. In Tailwind v3, neutral-100 was #F5F5F5.

neutral-100#F5F5F5

In OKLCH, neutral-100 has a lightness of 97.0% and zero chroma: a gray with no hue at all.

The value fits inside sRGB, so the hex #F5F5F5 represents it without loss on any screen.

In v3, neutral-100 was #F5F5F5. The v4 value is ΔE OK 0.0 away, below the point where most people can tell them apart.

Tailwind neutral is a true gray: its OKLCH chroma is zero in every shade, so it has no hue at all.

Color codes for neutral-100

Color codes for neutral-100
Tailwind v4 token--color-neutral-100
OKLCH (source value)oklch(97% 0 none)
HEX#F5F5F5
RGBrgb(245, 245, 245)
HSLhsl(0, 0%, 96%)
HWBhwb(0 96% 4%)
CMYK (naive, no ICC profile)cmyk(0%, 0%, 0%, 4%)
Decimal16,119,285
Tailwind v3 hex#F5F5F5
Utility classesbg-neutral-100, text-neutral-100, border-neutral-100

Tailwind neutral scale

Contrast and accessibility

On neutral-100, black text has a contrast ratio of 19.26:1 and passes AAA at any text size; white text reaches 1.09: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 neutral-10019.26:1PassPassPassPass100.1
White text on neutral-1001.09:1FailFailFailFail0.0
Neutral-100 text on white1.09:1FailFailFailFail0.0
Neutral-100 text on black19.26:1PassPassPassPass−101.3

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #f6f6f6
  2. 15%
    #f7f7f7
  3. 25%
    #f8f8f8
  4. 35%
    #f9f9f9
  5. 45%
    #fafafa
  6. 55%
    #fbfbfb
  7. 65%
    #fcfcfc
  8. 75%
    #fdfdfd
  9. 85%
    #fefefe
  10. 95%
    #ffffff

Shades (mixed with black)

  1. 5%
    #e9e9e9
  2. 15%
    #d0d0d0
  3. 25%
    #b8b8b8
  4. 35%
    #9f9f9f
  5. 45%
    #878787
  6. 55%
    #6e6e6e
  7. 65%
    #565656
  8. 75%
    #3d3d3d
  9. 85%
    #252525
  10. 95%
    #0c0c0c

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, neutral-100's complementary color is #F5F5F5 (close to whitesmoke), its analogous colors are #F5F5F5 and #F5F5F5, and its triadic partners are #F5F5F5 and #F5F5F5. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#f5f5f5
Analogous−30°, +30°#f5f5f5#f5f5f5
Triadic+120°, +240°#f5f5f5#f5f5f5
Split-complementary+150°, +210°#f5f5f5#f5f5f5

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 neutral-100 is close to neutral: its OKLCH chroma is only 0.000, 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
aliceblue#f0f8ff1.4
ghostwhite#f8f8ff1.4
seashell#fff5ee1.5

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
stone-100#f5f5f40.1
zinc-100#f4f4f50.3
gray-100#f3f4f60.4

Code snippets

Tailwind CSS
<div class="bg-neutral-100 text-black">...</div>
<p class="text-neutral-100 border-neutral-100">...</p>
CSS
.element {
  color: var(--color-neutral-100);
  background-color: oklch(97% 0 none);
  border-color: #f5f5f5;
  outline-color: rgb(245 245 245);
}
SwiftUI
import SwiftUI

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

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

const neutral100 = Color(0xFFF5F5F5);
Android XML
<!-- res/values/colors.xml -->
<color name="neutral_100">#F5F5F5</color>

Frequently asked questions

What is the hex code for Tailwind neutral-100?
In Tailwind CSS v4, neutral-100 is oklch(97% 0 none), which converts to #F5F5F5 (rgb(245, 245, 245)) in sRGB. In Tailwind v3 the same name was #F5F5F5.
What is the difference between neutral-100 in Tailwind v3 and v4?
v3 used the hex #F5F5F5; v4 redefined the palette in OKLCH as oklch(97% 0 none). In v3, neutral-100 was #F5F5F5. The v4 value is ΔE OK 0.0 away, below the point where most people can tell them apart.
How do I use neutral-100 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-neutral-100). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on neutral-100?
White text on neutral-100 has a contrast ratio of 1.09:1, which fails AA even for large text under WCAG 2.2. Black text reaches 19.26:1 and passes both AA and AAA. In APCA terms that is Lc 0.0 for white and Lc 100.1 for black.
Which CSS named color is closest to neutral-100?
The closest is aliceblue (#F0F8FF) at ΔE OK 1.4, followed by ghostwhite and seashell.

Last reviewed by Arielton Oberek.