Tailwind CSS v4 default palette
Tailwind mauve-300: #D7D0D7
In Tailwind CSS v4, mauve-300 is defined as --color-mauve-300: oklch(86.5% 0.012 325.68), which is #D7D0D7 in hex and rgb(215, 208, 215): a very light, grayish magenta.
In OKLCH, mauve-300 has a lightness of 86.5%, chroma 0.012 and hue 325.7°.
The value fits inside sRGB, so the hex #D7D0D7 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-300
| Tailwind v4 token | --color-mauve-300 |
|---|---|
| OKLCH (source value) | oklch(86.5% 0.012 325.68) |
| HEX | #D7D0D7 |
| RGB | rgb(215, 208, 215) |
| HSL | hsl(300, 8%, 83%) |
| HWB | hwb(300 82% 16%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 3%, 0%, 16%) |
| Decimal | 14,143,703 |
| Utility classes | bg-mauve-300, text-mauve-300, border-mauve-300 |
Tailwind mauve scale
Contrast and accessibility
On mauve-300, black text has a contrast ratio of 13.89:1 and passes AAA at any text size; white text reaches 1.51: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-300 | 13.89:1 | Pass | Pass | Pass | Pass | 79.9 |
| White text on mauve-300 | 1.51:1 | Fail | Fail | Fail | Fail | −27.1 |
| Mauve-300 text on white | 1.51:1 | Fail | Fail | Fail | Fail | 23.9 |
| Mauve-300 text on black | 13.89:1 | Pass | Pass | Pass | Pass | −79.3 |
Tints and shades
Each step mixes var(--color-mauve-300) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-mauve-300), white 25%) in CSS.
Tints (mixed with white)
- 5%
#d9d2d9 - 15%
#ddd7dd - 25%
#e1dce1 - 35%
#e5e0e5 - 45%
#e9e5e9 - 55%
#edeaed - 65%
#f1eff1 - 75%
#f5f3f5 - 85%
#f9f8f9 - 95%
#fdfdfd
Shades (mixed with black)
- 5%
#ccc6cc - 15%
#b7b1b7 - 25%
#a19ca1 - 35%
#8c878c - 45%
#767276 - 55%
#615e61 - 65%
#4b494b - 75%
#363436 - 85%
#201f20 - 95%
#0b0a0b
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, mauve-300's complementary color is #CED5CE (close to lightgray), its analogous colors are #D3D1DA and #DACFD3, and its triadic partners are #D6D2CA and #CAD5D6. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #ced5ce |
| Analogous | −30°, +30° | #d3d1da#dacfd3 |
| Triadic | +120°, +240° | #d6d2ca#cad5d6 |
| Split-complementary | +150°, +210° | #d2d4cb#cbd5d2 |
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-300 is close to neutral: its OKLCH chroma is only 0.012, 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-300 text-black">...</div>
<p class="text-mauve-300 border-mauve-300">...</p>.element {
color: var(--color-mauve-300);
background-color: oklch(86.5% 0.012 325.68);
border-color: #d7d0d7;
outline-color: rgb(215 208 215);
}import SwiftUI
extension Color {
static let mauve300 = Color(red: 0.843, green: 0.816, blue: 0.843)
}import androidx.compose.ui.graphics.Color
val Mauve300 = Color(0xFFD7D0D7)import 'package:flutter/material.dart';
const mauve300 = Color(0xFFD7D0D7);<!-- res/values/colors.xml -->
<color name="mauve_300">#D7D0D7</color>Frequently asked questions
- What is the hex code for Tailwind mauve-300?
- In Tailwind CSS v4, mauve-300 is oklch(86.5% 0.012 325.68), which converts to #D7D0D7 (rgb(215, 208, 215)) in sRGB.
- Is mauve-300 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 #D7D0D7.
- How do I use mauve-300 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-mauve-300). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on mauve-300?
- White text on mauve-300 has a contrast ratio of 1.51:1, which fails AA even for large text under WCAG 2.2. Black text reaches 13.89:1 and passes both AA and AAA. In APCA terms that is Lc −27.1 for white and Lc 79.9 for black.
- Which CSS named color is closest to mauve-300?
- The closest is lightgray (#D3D3D3) at ΔE OK 1.2, followed by gainsboro and thistle.
Last reviewed by Arielton Oberek.