Tailwind CSS v4 default palette
Tailwind neutral-500: #737373
In Tailwind CSS v4, neutral-500 is defined as --color-neutral-500: oklch(55.6% 0 none), which is #737373 in hex and rgb(115, 115, 115): a medium-dark neutral gray. In Tailwind v3, neutral-500 was #737373.
In OKLCH, neutral-500 has a lightness of 55.6% and zero chroma: a gray with no hue at all.
The value fits inside sRGB, so the hex #737373 represents it without loss on any screen.
In v3, neutral-500 was #737373. 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-500
| Tailwind v4 token | --color-neutral-500 |
|---|---|
| OKLCH (source value) | oklch(55.6% 0 none) |
| HEX | #737373 |
| RGB | rgb(115, 115, 115) |
| HSL | hsl(0, 0%, 45%) |
| HWB | hwb(0 45% 55%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 0%, 0%, 55%) |
| Decimal | 7,566,195 |
| Tailwind v3 hex | #737373 |
| Utility classes | bg-neutral-500, text-neutral-500, border-neutral-500 |
Tailwind neutral scale
Contrast and accessibility
On neutral-500, white text has a contrast ratio of 4.74:1 and passes AA for normal text; black text reaches 4.42: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-500 | 4.42:1 | Fail | Pass | Fail | Fail | 31.1 |
| White text on neutral-500 | 4.74:1 | Pass | Pass | Fail | Pass | −78.4 |
| Neutral-500 text on white | 4.74:1 | Pass | Pass | Fail | Pass | 72.9 |
| Neutral-500 text on black | 4.42:1 | Fail | Pass | Fail | Fail | −28.7 |
Tints and shades
Each step mixes var(--color-neutral-500) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-neutral-500), white 25%) in CSS.
Tints (mixed with white)
- 5%
#7a7a7a - 15%
#888888 - 25%
#969696 - 35%
#a4a4a4 - 45%
#b2b2b2 - 55%
#c0c0c0 - 65%
#cecece - 75%
#dcdcdc - 85%
#eaeaea - 95%
#f8f8f8
Shades (mixed with black)
- 5%
#6d6d6d - 15%
#626262 - 25%
#565656 - 35%
#4b4b4b - 45%
#3f3f3f - 55%
#343434 - 65%
#282828 - 75%
#1d1d1d - 85%
#111111 - 95%
#060606
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, neutral-500's complementary color is #737373 (close to dimgray), its analogous colors are #737373 and #737373, and its triadic partners are #737373 and #737373. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #737373 |
| Analogous | −30°, +30° | #737373#737373 |
| Triadic | +120°, +240° | #737373#737373 |
| Split-complementary | +150°, +210° | #737373#737373 |
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-500 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-500 text-white">...</div>
<p class="text-neutral-500 border-neutral-500">...</p>.element {
color: var(--color-neutral-500);
background-color: oklch(55.6% 0 none);
border-color: #737373;
outline-color: rgb(115 115 115);
}import SwiftUI
extension Color {
static let neutral500 = Color(red: 0.451, green: 0.451, blue: 0.451)
}import androidx.compose.ui.graphics.Color
val Neutral500 = Color(0xFF737373)import 'package:flutter/material.dart';
const neutral500 = Color(0xFF737373);<!-- res/values/colors.xml -->
<color name="neutral_500">#737373</color>Frequently asked questions
- What is the hex code for Tailwind neutral-500?
- In Tailwind CSS v4, neutral-500 is oklch(55.6% 0 none), which converts to #737373 (rgb(115, 115, 115)) in sRGB. In Tailwind v3 the same name was #737373.
- What is the difference between neutral-500 in Tailwind v3 and v4?
- v3 used the hex #737373; v4 redefined the palette in OKLCH as oklch(55.6% 0 none). In v3, neutral-500 was #737373. The v4 value is ΔE OK 0.0 away, below the point where most people can tell them apart.
- How do I use neutral-500 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-neutral-500). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on neutral-500?
- White text on neutral-500 has a contrast ratio of 4.74:1, which passes AA for normal text but not AAA under WCAG 2.2. Black text reaches 4.42:1 and passes AA only for large text (24 px, or 18.66 px bold, and up). In APCA terms that is Lc −78.4 for white and Lc 31.1 for black.
- Which CSS named color is closest to neutral-500?
- The closest is dimgray (#696969) at ΔE OK 3.5, followed by gray and slategray.
Last reviewed by Arielton Oberek.