Skip to content

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.

mauve-400#A89EA9

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

Color codes for mauve-400
Tailwind v4 token--color-mauve-400
OKLCH (source value)oklch(71.1% 0.019 323.02)
HEX#A89EA9
RGBrgb(168, 158, 169)
HSLhsl(295, 6%, 64%)
HWBhwb(295 62% 34%)
CMYK (naive, no ICC profile)cmyk(1%, 7%, 0%, 34%)
Decimal11,050,665
Utility classesbg-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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on mauve-4008.12:1PassPassPassPass53.5
White text on mauve-4002.58:1FailFailFailFail−55.7
Mauve-400 text on white2.58:1FailFailFailFail50.5
Mauve-400 text on black8.12:1PassPassPassPass−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)

  1. 5%
    #aca3ad
  2. 15%
    #b5adb6
  3. 25%
    #beb6bf
  4. 35%
    #c6c0c7
  5. 45%
    #cfcad0
  6. 55%
    #d8d3d8
  7. 65%
    #e1dde1
  8. 75%
    #e9e7ea
  9. 85%
    #f2f0f2
  10. 95%
    #fbfafb

Shades (mixed with black)

  1. 5%
    #a096a1
  2. 15%
    #8f8690
  3. 25%
    #7e777f
  4. 35%
    #6d676e
  5. 45%
    #5c575d
  6. 55%
    #4c474c
  7. 65%
    #3b373b
  8. 75%
    #2a282a
  9. 85%
    #191819
  10. 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.

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

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
darkgray#a9a9a93.0
rosybrown#bc8f8f5.0
cadetblue#5f9ea09.4

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
zinc-400#9f9fa91.3
neutral-400#a1a1a11.9
taupe-400#aba09c2.1

Code snippets

Tailwind CSS
<div class="bg-mauve-400 text-black">...</div>
<p class="text-mauve-400 border-mauve-400">...</p>
CSS
.element {
  color: var(--color-mauve-400);
  background-color: oklch(71.1% 0.019 323.02);
  border-color: #a89ea9;
  outline-color: rgb(168 158 169);
}
SwiftUI
import SwiftUI

extension Color {
  static let mauve400 = Color(red: 0.659, green: 0.620, blue: 0.663)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

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