Skip to content

Tailwind CSS v4 default palette

Tailwind mauve-950: #0C090C

In Tailwind CSS v4, mauve-950 is defined as --color-mauve-950: oklch(14.5% 0.008 326), which is #0C090C in hex and rgb(12, 9, 12): a near-black with a faint purple tint.

mauve-950#0C090C

In OKLCH, mauve-950 has a lightness of 14.5%, chroma 0.008 and hue 326.0°.

The value fits inside sRGB, so the hex #0C090C 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-950

Color codes for mauve-950
Tailwind v4 token--color-mauve-950
OKLCH (source value)oklch(14.5% 0.008 326)
HEX#0C090C
RGBrgb(12, 9, 12)
HSLhsl(300, 14%, 4%)
HWBhwb(300 4% 95%)
CMYK (naive, no ICC profile)cmyk(0%, 25%, 0%, 95%)
Decimal788,748
Utility classesbg-mauve-950, text-mauve-950, border-mauve-950

Tailwind mauve scale

Contrast and accessibility

On mauve-950, white text has a contrast ratio of 19.81:1 and passes AAA at any text size; black text reaches 1.06: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-9501.06:1FailFailFailFail0.0
White text on mauve-95019.81:1PassPassPassPass−107.7
Mauve-950 text on white19.81:1PassPassPassPass105.8
Mauve-950 text on black1.06:1FailFailFailFail0.0

Tints and shades

Each step mixes var(--color-mauve-950) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-mauve-950), white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #181518
  2. 15%
    #302e30
  3. 25%
    #494749
  4. 35%
    #615f61
  5. 45%
    #797879
  6. 55%
    #929092
  7. 65%
    #aaa9aa
  8. 75%
    #c2c2c2
  9. 85%
    #dbdadb
  10. 95%
    #f3f3f3

Shades (mixed with black)

  1. 5%
    #0b090b
  2. 15%
    #0a080a
  3. 25%
    #090709
  4. 35%
    #080608
  5. 45%
    #070507
  6. 55%
    #050405
  7. 65%
    #040304
  8. 75%
    #030203
  9. 85%
    #020102
  10. 95%
    #010001

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, mauve-950's complementary color is #080B08 (close to black), its analogous colors are #0A090D and #0D090A, and its triadic partners are #0C0A07 and #070B0C. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#080b08
Analogous−30°, +30°#0a090d#0d090a
Triadic+120°, +240°#0c0a07#070b0c
Split-complementary+150°, +210°#0a0b07#070b0a

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-950 is close to neutral: its OKLCH chroma is only 0.008, 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
black#00000014.5
midnightblue#19197019.9
navy#00008022.3

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
zinc-950#09090b0.7
neutral-950#0a0a0a0.8
stone-950#0c0a090.9

Code snippets

Tailwind CSS
<div class="bg-mauve-950 text-white">...</div>
<p class="text-mauve-950 border-mauve-950">...</p>
CSS
.element {
  color: var(--color-mauve-950);
  background-color: oklch(14.5% 0.008 326);
  border-color: #0c090c;
  outline-color: rgb(12 9 12);
}
SwiftUI
import SwiftUI

extension Color {
  static let mauve950 = Color(red: 0.047, green: 0.035, blue: 0.047)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const mauve950 = Color(0xFF0C090C);
Android XML
<!-- res/values/colors.xml -->
<color name="mauve_950">#0C090C</color>

Frequently asked questions

What is the hex code for Tailwind mauve-950?
In Tailwind CSS v4, mauve-950 is oklch(14.5% 0.008 326), which converts to #0C090C (rgb(12, 9, 12)) in sRGB.
Is mauve-950 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 #0C090C.
How do I use mauve-950 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-mauve-950). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on mauve-950?
White text on mauve-950 has a contrast ratio of 19.81:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 1.06:1 and fails AA even for large text. In APCA terms that is Lc −107.7 for white and Lc 0.0 for black.
Which CSS named color is closest to mauve-950?
The closest is black (#000000) at ΔE OK 14.5, followed by midnightblue and navy.

Last reviewed by Arielton Oberek.