Tailwind CSS v4 default palette
Tailwind mauve-200: #E7E4E7
In Tailwind CSS v4, mauve-200 is defined as --color-mauve-200: oklch(92.2% 0.005 325.62), which is #E7E4E7 in hex and rgb(231, 228, 231): a pale gray with a faint magenta tint.
In OKLCH, mauve-200 has a lightness of 92.2%, chroma 0.005 and hue 325.6°.
The value fits inside sRGB, so the hex #E7E4E7 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-200
| Tailwind v4 token | --color-mauve-200 |
|---|---|
| OKLCH (source value) | oklch(92.2% 0.005 325.62) |
| HEX | #E7E4E7 |
| RGB | rgb(231, 228, 231) |
| HSL | hsl(300, 6%, 90%) |
| HWB | hwb(300 89% 9%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 1%, 0%, 9%) |
| Decimal | 15,197,415 |
| Utility classes | bg-mauve-200, text-mauve-200, border-mauve-200 |
Tailwind mauve scale
Contrast and accessibility
On mauve-200, black text has a contrast ratio of 16.64:1 and passes AAA at any text size; white text reaches 1.26: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-200 | 16.64:1 | Pass | Pass | Pass | Pass | 90.6 |
| White text on mauve-200 | 1.26:1 | Fail | Fail | Fail | Fail | −15.0 |
| Mauve-200 text on white | 1.26:1 | Fail | Fail | Fail | Fail | 13.0 |
| Mauve-200 text on black | 16.64:1 | Pass | Pass | Pass | Pass | −90.9 |
Tints and shades
Each step mixes var(--color-mauve-200) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-mauve-200), white 25%) in CSS.
Tints (mixed with white)
- 5%
#e8e5e8 - 15%
#ebe8eb - 25%
#edebed - 35%
#efedef - 45%
#f2f0f2 - 55%
#f4f3f4 - 65%
#f7f6f7 - 75%
#f9f8f9 - 85%
#fbfbfb - 95%
#fefefe
Shades (mixed with black)
- 5%
#dbd9db - 15%
#c4c2c4 - 25%
#adabad - 35%
#969496 - 45%
#7f7d7f - 55%
#686768 - 65%
#515051 - 75%
#3a393a - 85%
#232223 - 95%
#0c0b0c
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, mauve-200's complementary color is #E3E6E3 (close to gainsboro), its analogous colors are #E5E4E8 and #E8E4E5, and its triadic partners are #E7E5E1 and #E2E6E7. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #e3e6e3 |
| Analogous | −30°, +30° | #e5e4e8#e8e4e5 |
| Triadic | +120°, +240° | #e7e5e1#e2e6e7 |
| Split-complementary | +150°, +210° | #e5e6e2#e2e6e5 |
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-200 is close to neutral: its OKLCH chroma is only 0.005, so its temperature comes from context. The faint 300° 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-200 text-black">...</div>
<p class="text-mauve-200 border-mauve-200">...</p>.element {
color: var(--color-mauve-200);
background-color: oklch(92.2% 0.005 325.62);
border-color: #e7e4e7;
outline-color: rgb(231 228 231);
}import SwiftUI
extension Color {
static let mauve200 = Color(red: 0.906, green: 0.894, blue: 0.906)
}import androidx.compose.ui.graphics.Color
val Mauve200 = Color(0xFFE7E4E7)import 'package:flutter/material.dart';
const mauve200 = Color(0xFFE7E4E7);<!-- res/values/colors.xml -->
<color name="mauve_200">#E7E4E7</color>Frequently asked questions
- What is the hex code for Tailwind mauve-200?
- In Tailwind CSS v4, mauve-200 is oklch(92.2% 0.005 325.62), which converts to #E7E4E7 (rgb(231, 228, 231)) in sRGB.
- Is mauve-200 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 #E7E4E7.
- How do I use mauve-200 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-mauve-200). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on mauve-200?
- White text on mauve-200 has a contrast ratio of 1.26:1, which fails AA even for large text under WCAG 2.2. Black text reaches 16.64:1 and passes both AA and AAA. In APCA terms that is Lc −15.0 for white and Lc 90.6 for black.
- Which CSS named color is closest to mauve-200?
- The closest is lavender (#E6E6FA) at ΔE OK 2.5, followed by gainsboro and mistyrose.
Last reviewed by Arielton Oberek.