Skip to content

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.

neutral-500#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

Color codes for neutral-500
Tailwind v4 token--color-neutral-500
OKLCH (source value)oklch(55.6% 0 none)
HEX#737373
RGBrgb(115, 115, 115)
HSLhsl(0, 0%, 45%)
HWBhwb(0 45% 55%)
CMYK (naive, no ICC profile)cmyk(0%, 0%, 0%, 55%)
Decimal7,566,195
Tailwind v3 hex#737373
Utility classesbg-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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on neutral-5004.42:1FailPassFailFail31.1
White text on neutral-5004.74:1PassPassFailPass−78.4
Neutral-500 text on white4.74:1PassPassFailPass72.9
Neutral-500 text on black4.42:1FailPassFailFail−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)

  1. 5%
    #7a7a7a
  2. 15%
    #888888
  3. 25%
    #969696
  4. 35%
    #a4a4a4
  5. 45%
    #b2b2b2
  6. 55%
    #c0c0c0
  7. 65%
    #cecece
  8. 75%
    #dcdcdc
  9. 85%
    #eaeaea
  10. 95%
    #f8f8f8

Shades (mixed with black)

  1. 5%
    #6d6d6d
  2. 15%
    #626262
  3. 25%
    #565656
  4. 35%
    #4b4b4b
  5. 45%
    #3f3f3f
  6. 55%
    #343434
  7. 65%
    #282828
  8. 75%
    #1d1d1d
  9. 85%
    #111111
  10. 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.

Color harmonies
HarmonyRotationColor
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.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
dimgray#6969693.5
gray#8080804.4
slategray#7080904.8

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
stone-500#79716b1.3
zinc-500#71717b1.6
mist-500#67787c2.1

Code snippets

Tailwind CSS
<div class="bg-neutral-500 text-white">...</div>
<p class="text-neutral-500 border-neutral-500">...</p>
CSS
.element {
  color: var(--color-neutral-500);
  background-color: oklch(55.6% 0 none);
  border-color: #737373;
  outline-color: rgb(115 115 115);
}
SwiftUI
import SwiftUI

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

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

const neutral500 = Color(0xFF737373);
Android XML
<!-- 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.