Tailwind CSS v4 default palette
Tailwind mauve-400: #A89EA9
In Tailwind CSS v4, mauve-400 is defined as --color-mauve-400: oklch(71.1% 0.019 323.02), which is #A89EA9 in hex and rgb(168, 158, 169): a light, grayish purple.
In OKLCH, mauve-400 has a lightness of 71.1%, chroma 0.019 and hue 323.0°.
The value fits inside sRGB, so the hex #A89EA9 represents it without loss on any screen.
Tailwind mauve is one of four tinted neutral scales added in Tailwind CSS v4.2: a gray with a purple-pink cast. It has no v3 equivalent.
Color codes for mauve-400
| Tailwind v4 token | --color-mauve-400 |
|---|---|
| OKLCH (source value) | oklch(71.1% 0.019 323.02) |
| HEX | #A89EA9 |
| RGB | rgb(168, 158, 169) |
| HSL | hsl(295, 6%, 64%) |
| HWB | hwb(295 62% 34%) |
| CMYK (naive, no ICC profile) | cmyk(1%, 7%, 0%, 34%) |
| Decimal | 11,050,665 |
| Utility classes | bg-mauve-400, text-mauve-400, border-mauve-400 |
Tailwind mauve scale
Contrast and accessibility
On mauve-400, black text has a contrast ratio of 8.12:1 and passes AAA at any text size; white text reaches 2.58: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 mauve-400 | 8.12:1 | Pass | Pass | Pass | Pass | 53.5 |
| White text on mauve-400 | 2.58:1 | Fail | Fail | Fail | Fail | −55.7 |
| Mauve-400 text on white | 2.58:1 | Fail | Fail | Fail | Fail | 50.5 |
| Mauve-400 text on black | 8.12:1 | Pass | Pass | Pass | Pass | −51.4 |
Tints and shades
Each step mixes var(--color-mauve-400) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-mauve-400), white 25%) in CSS.
Tints (mixed with white)
- 5%
#aca3ad - 15%
#b5adb6 - 25%
#beb6bf - 35%
#c6c0c7 - 45%
#cfcad0 - 55%
#d8d3d8 - 65%
#e1dde1 - 75%
#e9e7ea - 85%
#f2f0f2 - 95%
#fbfafb
Shades (mixed with black)
- 5%
#a096a1 - 15%
#8f8690 - 25%
#7e777f - 35%
#6d676e - 45%
#5c575d - 55%
#4c474c - 65%
#3b373b - 75%
#2a282a - 85%
#191819 - 95%
#080808
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, mauve-400's complementary color is #9BA59A (close to darkgray), its analogous colors are #A2A0AD and #AC9DA3, and its triadic partners are #A8A195 and #95A6A7. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #9ba59a |
| Analogous | −30°, +30° | #a2a0ad#ac9da3 |
| Triadic | +120°, +240° | #a8a195#95a6a7 |
| Split-complementary | +150°, +210° | #a1a396#96a6a1 |
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 mauve-400 is close to neutral: its OKLCH chroma is only 0.019, so its temperature comes from context. The faint 295° hue gives it a slightly cool 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.
Code snippets
<div class="bg-mauve-400 text-black">...</div>
<p class="text-mauve-400 border-mauve-400">...</p>.element {
color: var(--color-mauve-400);
background-color: oklch(71.1% 0.019 323.02);
border-color: #a89ea9;
outline-color: rgb(168 158 169);
}import SwiftUI
extension Color {
static let mauve400 = Color(red: 0.659, green: 0.620, blue: 0.663)
}import androidx.compose.ui.graphics.Color
val Mauve400 = Color(0xFFA89EA9)import 'package:flutter/material.dart';
const mauve400 = Color(0xFFA89EA9);<!-- res/values/colors.xml -->
<color name="mauve_400">#A89EA9</color>Frequently asked questions
- What is the hex code for Tailwind mauve-400?
- In Tailwind CSS v4, mauve-400 is oklch(71.1% 0.019 323.02), which converts to #A89EA9 (rgb(168, 158, 169)) in sRGB.
- Is mauve-400 available in Tailwind v3?
- No. The mauve 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 #A89EA9.
- How do I use mauve-400 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-mauve-400). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on mauve-400?
- White text on mauve-400 has a contrast ratio of 2.58:1, which fails AA even for large text under WCAG 2.2. Black text reaches 8.12:1 and passes both AA and AAA. In APCA terms that is Lc −55.7 for white and Lc 53.5 for black.
- Which CSS named color is closest to mauve-400?
- The closest is darkgray (#A9A9A9) at ΔE OK 3.0, followed by rosybrown and cadetblue.
Last reviewed by Arielton Oberek.