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.
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
| Tailwind v4 token | --color-neutral-100 |
|---|---|
| OKLCH (source value) | oklch(97% 0 none) |
| HEX | #F5F5F5 |
| RGB | rgb(245, 245, 245) |
| HSL | hsl(0, 0%, 96%) |
| HWB | hwb(0 96% 4%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 0%, 0%, 4%) |
| Decimal | 16,119,285 |
| Tailwind v3 hex | #F5F5F5 |
| Utility classes | bg-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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on neutral-100 | 19.26:1 | Pass | Pass | Pass | Pass | 100.1 |
| White text on neutral-100 | 1.09:1 | Fail | Fail | Fail | Fail | 0.0 |
| Neutral-100 text on white | 1.09:1 | Fail | Fail | Fail | Fail | 0.0 |
| Neutral-100 text on black | 19.26:1 | Pass | Pass | Pass | Pass | −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)
- 5%
#f6f6f6 - 15%
#f7f7f7 - 25%
#f8f8f8 - 35%
#f9f9f9 - 45%
#fafafa - 55%
#fbfbfb - 65%
#fcfcfc - 75%
#fdfdfd - 85%
#fefefe - 95%
#ffffff
Shades (mixed with black)
- 5%
#e9e9e9 - 15%
#d0d0d0 - 25%
#b8b8b8 - 35%
#9f9f9f - 45%
#878787 - 55%
#6e6e6e - 65%
#565656 - 75%
#3d3d3d - 85%
#252525 - 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.
| Harmony | Rotation | Color |
|---|---|---|
| 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.
Code snippets
<div class="bg-neutral-100 text-black">...</div>
<p class="text-neutral-100 border-neutral-100">...</p>.element {
color: var(--color-neutral-100);
background-color: oklch(97% 0 none);
border-color: #f5f5f5;
outline-color: rgb(245 245 245);
}import SwiftUI
extension Color {
static let neutral100 = Color(red: 0.961, green: 0.961, blue: 0.961)
}import androidx.compose.ui.graphics.Color
val Neutral100 = Color(0xFFF5F5F5)import 'package:flutter/material.dart';
const neutral100 = Color(0xFFF5F5F5);<!-- 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.