Skip to content

Tailwind CSS v4 default palette

Tailwind taupe-300: #D8D2D0

In Tailwind CSS v4, taupe-300 is defined as --color-taupe-300: oklch(86.8% 0.007 39.5), which is #D8D2D0 in hex and rgb(216, 210, 208): a very light gray with a faint red-orange tint.

taupe-300#D8D2D0

In OKLCH, taupe-300 has a lightness of 86.8%, chroma 0.007 and hue 39.5°.

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

Tailwind taupe is a tinted neutral added in v4.2: a warm gray with a brown cast. It has no v3 equivalent.

Color codes for taupe-300

Color codes for taupe-300
Tailwind v4 token--color-taupe-300
OKLCH (source value)oklch(86.8% 0.007 39.5)
HEX#D8D2D0
RGBrgb(216, 210, 208)
HSLhsl(15, 9%, 83%)
HWBhwb(15 82% 15%)
CMYK (naive, no ICC profile)cmyk(0%, 3%, 4%, 15%)
Decimal14,209,744
Utility classesbg-taupe-300, text-taupe-300, border-taupe-300

Tailwind taupe scale

Contrast and accessibility

On taupe-300, black text has a contrast ratio of 14.04:1 and passes AAA at any text size; white text reaches 1.49: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 taupe-30014.04:1PassPassPassPass80.5
White text on taupe-3001.49:1FailFailFailFail−26.4
Taupe-300 text on white1.49:1FailFailFailFail23.2
Taupe-300 text on black14.04:1PassPassPassPass−80.0

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #dad4d2
  2. 15%
    #ded9d7
  3. 25%
    #e2dddc
  4. 35%
    #e6e2e0
  5. 45%
    #eae6e5
  6. 55%
    #edebea
  7. 65%
    #f1efef
  8. 75%
    #f5f4f3
  9. 85%
    #f9f8f8
  10. 95%
    #fdfdfd

Shades (mixed with black)

  1. 5%
    #cdc8c6
  2. 15%
    #b8b3b1
  3. 25%
    #a29e9c
  4. 35%
    #8c8987
  5. 45%
    #777472
  6. 55%
    #615e5e
  7. 65%
    #4c4a49
  8. 75%
    #363534
  9. 85%
    #20201f
  10. 95%
    #0b0b0a

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, taupe-300's complementary color is #CFD5D7 (close to lightgray), its analogous colors are #D8D2D2 and #D7D3CF, and its triadic partners are #D0D5D2 and #D2D3D8. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#cfd5d7
Analogous−30°, +30°#d8d2d2#d7d3cf
Triadic+120°, +240°#d0d5d2#d2d3d8
Split-complementary+150°, +210°#cfd5d4#d0d4d8

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 taupe-300 is close to neutral: its OKLCH chroma is only 0.007, so its temperature comes from context. The faint 15° hue gives it a slightly warm cast.

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
lightgray#d3d3d30.7
gainsboro#dcdcdc2.7
thistle#d8bfd85.5

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
stone-300#d6d3d10.3
neutral-300#d4d4d40.7
zinc-300#d4d4d81.1

Code snippets

Tailwind CSS
<div class="bg-taupe-300 text-black">...</div>
<p class="text-taupe-300 border-taupe-300">...</p>
CSS
.element {
  color: var(--color-taupe-300);
  background-color: oklch(86.8% 0.007 39.5);
  border-color: #d8d2d0;
  outline-color: rgb(216 210 208);
}
SwiftUI
import SwiftUI

extension Color {
  static let taupe300 = Color(red: 0.847, green: 0.824, blue: 0.816)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const taupe300 = Color(0xFFD8D2D0);
Android XML
<!-- res/values/colors.xml -->
<color name="taupe_300">#D8D2D0</color>

Frequently asked questions

What is the hex code for Tailwind taupe-300?
In Tailwind CSS v4, taupe-300 is oklch(86.8% 0.007 39.5), which converts to #D8D2D0 (rgb(216, 210, 208)) in sRGB.
Is taupe-300 available in Tailwind v3?
No. The taupe scale was added in Tailwind CSS v4.2. In v3 you can recreate it in tailwind.config.js under theme.extend.colors with the hex #D8D2D0.
How do I use taupe-300 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-taupe-300). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on taupe-300?
White text on taupe-300 has a contrast ratio of 1.49:1, which fails AA even for large text under WCAG 2.2. Black text reaches 14.04:1 and passes both AA and AAA. In APCA terms that is Lc −26.4 for white and Lc 80.5 for black.
Which CSS named color is closest to taupe-300?
The closest is lightgray (#D3D3D3) at ΔE OK 0.7, followed by gainsboro and thistle.

Last reviewed by Arielton Oberek.