Skip to content

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.

mauve-200#E7E4E7

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

Color codes for mauve-200
Tailwind v4 token--color-mauve-200
OKLCH (source value)oklch(92.2% 0.005 325.62)
HEX#E7E4E7
RGBrgb(231, 228, 231)
HSLhsl(300, 6%, 90%)
HWBhwb(300 89% 9%)
CMYK (naive, no ICC profile)cmyk(0%, 1%, 0%, 9%)
Decimal15,197,415
Utility classesbg-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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on mauve-20016.64:1PassPassPassPass90.6
White text on mauve-2001.26:1FailFailFailFail−15.0
Mauve-200 text on white1.26:1FailFailFailFail13.0
Mauve-200 text on black16.64:1PassPassPassPass−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)

  1. 5%
    #e8e5e8
  2. 15%
    #ebe8eb
  3. 25%
    #edebed
  4. 35%
    #efedef
  5. 45%
    #f2f0f2
  6. 55%
    #f4f3f4
  7. 65%
    #f7f6f7
  8. 75%
    #f9f8f9
  9. 85%
    #fbfbfb
  10. 95%
    #fefefe

Shades (mixed with black)

  1. 5%
    #dbd9db
  2. 15%
    #c4c2c4
  3. 25%
    #adabad
  4. 35%
    #969496
  5. 45%
    #7f7d7f
  6. 55%
    #686768
  7. 65%
    #515051
  8. 75%
    #3a393a
  9. 85%
    #232223
  10. 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.

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

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
lavender#e6e6fa2.5
gainsboro#dcdcdc2.8
mistyrose#ffe4e13.3

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
zinc-200#e4e4e70.4
neutral-200#e5e5e50.5
stone-200#e7e5e40.6

Code snippets

Tailwind CSS
<div class="bg-mauve-200 text-black">...</div>
<p class="text-mauve-200 border-mauve-200">...</p>
CSS
.element {
  color: var(--color-mauve-200);
  background-color: oklch(92.2% 0.005 325.62);
  border-color: #e7e4e7;
  outline-color: rgb(231 228 231);
}
SwiftUI
import SwiftUI

extension Color {
  static let mauve200 = Color(red: 0.906, green: 0.894, blue: 0.906)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

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