Tailwind CSS v4 default palette
Tailwind gray-600: #4A5565
In Tailwind CSS v4, gray-600 is defined as --color-gray-600: oklch(44.6% 0.03 256.802), which is #4A5565 in hex and rgb(74, 85, 101): a dark, grayish blue. In Tailwind v3, gray-600 was #4B5563.
In OKLCH, gray-600 has a lightness of 44.6%, chroma 0.030 and hue 256.8°.
The value fits inside sRGB, so the hex #4A5565 represents it without loss on any screen.
In v3, gray-600 was #4B5563. The v4 value is ΔE OK 0.4 away, below the point where most people can tell them apart.
Tailwind gray is a cool gray with a lighter blue tint than slate, the default neutral in many Tailwind projects.
Color codes for gray-600
| Tailwind v4 token | --color-gray-600 |
|---|---|
| OKLCH (source value) | oklch(44.6% 0.03 256.802) |
| HEX | #4A5565 |
| RGB | rgb(74, 85, 101) |
| HSL | hsl(216, 15%, 34%) |
| HWB | hwb(216 29% 60%) |
| CMYK (naive, no ICC profile) | cmyk(27%, 16%, 0%, 60%) |
| Decimal | 4,871,525 |
| Tailwind v3 hex | #4B5563 |
| Utility classes | bg-gray-600, text-gray-600, border-gray-600 |
Tailwind gray scale
Contrast and accessibility
On gray-600, white text has a contrast ratio of 7.55:1 and passes AAA at any text size; black text reaches 2.77: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 gray-600 | 2.77:1 | Fail | Fail | Fail | Fail | 17.7 |
| White text on gray-600 | 7.55:1 | Pass | Pass | Pass | Pass | −91.1 |
| Gray-600 text on white | 7.55:1 | Pass | Pass | Pass | Pass | 86.3 |
| Gray-600 text on black | 2.77:1 | Fail | Fail | Fail | Fail | −15.8 |
Tints and shades
Each step mixes var(--color-gray-600) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-gray-600), white 25%) in CSS.
Tints (mixed with white)
- 5%
#535e6d - 15%
#656f7c - 25%
#77808c - 35%
#89919b - 45%
#9ba2aa - 55%
#aeb3ba - 65%
#c0c4c9 - 75%
#d2d5d9 - 85%
#e4e6e8 - 95%
#f6f7f7
Shades (mixed with black)
- 5%
#465160 - 15%
#3f4856 - 25%
#38404c - 35%
#303742 - 45%
#292f38 - 55%
#21262d - 65%
#1a1e23 - 75%
#131519 - 85%
#0b0d0f - 95%
#040405
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, gray-600's complementary color is #5E5242 (close to darkslategray), its analogous colors are #435861 and #535264, and its triadic partners are #644E4E and #4D5848. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #5e5242 |
| Analogous | −30°, +30° | #435861#535264 |
| Triadic | +120°, +240° | #644e4e#4d5848 |
| Split-complementary | +150°, +210° | #634f46#565642 |
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 gray-600 is a cool color: its hue is 216° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.
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
| Color | HEX | ΔE OK |
|---|---|---|
| darkslategray | #2f4f4f | 5.5 |
| dimgray | #696969 | 8.1 |
| darkslateblue | #483d8b | 10.5 |
Code snippets
<div class="bg-gray-600 text-white">...</div>
<p class="text-gray-600 border-gray-600">...</p>.element {
color: var(--color-gray-600);
background-color: oklch(44.6% 0.03 256.802);
border-color: #4a5565;
outline-color: rgb(74 85 101);
}import SwiftUI
extension Color {
static let gray600 = Color(red: 0.290, green: 0.333, blue: 0.396)
}import androidx.compose.ui.graphics.Color
val Gray600 = Color(0xFF4A5565)import 'package:flutter/material.dart';
const gray600 = Color(0xFF4A5565);<!-- res/values/colors.xml -->
<color name="gray_600">#4A5565</color>Frequently asked questions
- What is the hex code for Tailwind gray-600?
- In Tailwind CSS v4, gray-600 is oklch(44.6% 0.03 256.802), which converts to #4A5565 (rgb(74, 85, 101)) in sRGB. In Tailwind v3 the same name was #4B5563.
- What is the difference between gray-600 in Tailwind v3 and v4?
- v3 used the hex #4B5563; v4 redefined the palette in OKLCH as oklch(44.6% 0.03 256.802). In v3, gray-600 was #4B5563. The v4 value is ΔE OK 0.4 away, below the point where most people can tell them apart.
- How do I use gray-600 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-gray-600). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on gray-600?
- White text on gray-600 has a contrast ratio of 7.55:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.77:1 and fails AA even for large text. In APCA terms that is Lc −91.1 for white and Lc 17.7 for black.
- Which CSS named color is closest to gray-600?
- The closest is darkslategray (#2F4F4F) at ΔE OK 5.5, followed by dimgray and darkslateblue.
Last reviewed by Arielton Oberek.