Skip to content

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.

mauve-300#D7D0D7

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

Color codes for mauve-300
Tailwind v4 token--color-mauve-300
OKLCH (source value)oklch(86.5% 0.012 325.68)
HEX#D7D0D7
RGBrgb(215, 208, 215)
HSLhsl(300, 8%, 83%)
HWBhwb(300 82% 16%)
CMYK (naive, no ICC profile)cmyk(0%, 3%, 0%, 16%)
Decimal14,143,703
Utility classesbg-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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on mauve-30013.89:1PassPassPassPass79.9
White text on mauve-3001.51:1FailFailFailFail−27.1
Mauve-300 text on white1.51:1FailFailFailFail23.9
Mauve-300 text on black13.89:1PassPassPassPass−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)

  1. 5%
    #d9d2d9
  2. 15%
    #ddd7dd
  3. 25%
    #e1dce1
  4. 35%
    #e5e0e5
  5. 45%
    #e9e5e9
  6. 55%
    #edeaed
  7. 65%
    #f1eff1
  8. 75%
    #f5f3f5
  9. 85%
    #f9f8f9
  10. 95%
    #fdfdfd

Shades (mixed with black)

  1. 5%
    #ccc6cc
  2. 15%
    #b7b1b7
  3. 25%
    #a19ca1
  4. 35%
    #8c878c
  5. 45%
    #767276
  6. 55%
    #615e61
  7. 65%
    #4b494b
  8. 75%
    #363436
  9. 85%
    #201f20
  10. 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.

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

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
lightgray#d3d3d31.2
gainsboro#dcdcdc3.2
thistle#d8bfd84.5

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
zinc-300#d4d4d81.0
taupe-300#d8d2d01.2
neutral-300#d4d4d41.3

Code snippets

Tailwind CSS
<div class="bg-mauve-300 text-black">...</div>
<p class="text-mauve-300 border-mauve-300">...</p>
CSS
.element {
  color: var(--color-mauve-300);
  background-color: oklch(86.5% 0.012 325.68);
  border-color: #d7d0d7;
  outline-color: rgb(215 208 215);
}
SwiftUI
import SwiftUI

extension Color {
  static let mauve300 = Color(red: 0.843, green: 0.816, blue: 0.843)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

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