Tailwind CSS v4 default palette
Tailwind purple-950: #3C0366
In Tailwind CSS v4, purple-950 is defined as --color-purple-950: oklch(29.1% 0.149 302.717), which is #3C0366 in hex and rgb(60, 3, 102): a very dark, moderately saturated violet. In Tailwind v3, purple-950 was #3B0764.
In OKLCH, purple-950 has a lightness of 29.1%, chroma 0.149 and hue 302.7°.
The value fits inside sRGB, so the hex #3C0366 represents it without loss on any screen.
In v3, purple-950 was #3B0764. The v4 value is ΔE OK 0.6 away, below the point where most people can tell them apart; v4 is more saturated.
Tailwind purple is a redder, more magenta-leaning violet than violet, with very high chroma in its mid shades.
Color codes for purple-950
| Tailwind v4 token | --color-purple-950 |
|---|---|
| OKLCH (source value) | oklch(29.1% 0.149 302.717) |
| HEX | #3C0366 |
| RGB | rgb(60, 3, 102) |
| HSL | hsl(275, 94%, 21%) |
| HWB | hwb(275 1% 60%) |
| CMYK (naive, no ICC profile) | cmyk(41%, 97%, 0%, 60%) |
| Decimal | 3,933,030 |
| Tailwind v3 hex | #3B0764 |
| Utility classes | bg-purple-950, text-purple-950, border-purple-950 |
Tailwind purple scale
Contrast and accessibility
On purple-950, white text has a contrast ratio of 15.03:1 and passes AAA at any text size; black text reaches 1.39: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 purple-950 | 1.39:1 | Fail | Fail | Fail | Fail | 0.0 |
| White text on purple-950 | 15.03:1 | Pass | Pass | Pass | Pass | −103.7 |
| Purple-950 text on white | 15.03:1 | Pass | Pass | Pass | Pass | 100.7 |
| Purple-950 text on black | 1.39:1 | Fail | Fail | Fail | Fail | 0.0 |
Tints and shades
Each step mixes var(--color-purple-950) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-purple-950), white 25%) in CSS.
Tints (mixed with white)
- 5%
#46106e - 15%
#59297d - 25%
#6d428c - 35%
#805b9c - 45%
#9474ab - 55%
#a78eba - 65%
#bba7c9 - 75%
#cec0d9 - 85%
#e2d9e8 - 95%
#f5f2f7
Shades (mixed with black)
- 5%
#390361 - 15%
#330357 - 25%
#2d024d - 35%
#270242 - 45%
#210238 - 55%
#1b012e - 65%
#150124 - 75%
#0f011a - 85%
#09000f - 95%
#030005
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, purple-950's complementary color is #243200 (close to darkslategray), its analogous colors are #191873 and #51004A, and its triadic partners are #481E00 and #00362F. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #243200 |
| Analogous | −30°, +30° | #191873#51004a |
| Triadic | +120°, +240° | #481e00#00362f |
| Split-complementary | +150°, +210° | #392900#00390d |
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 purple-950 is a cool color: its hue is 275° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.
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
| Color | HEX | ΔE OK |
|---|---|---|
| indigo | #4b0082 | 5.7 |
| midnightblue | #191970 | 7.6 |
| navy | #000080 | 11.9 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| violet-950 | #2f0d68 | 3.1 |
| fuchsia-950 | #4b004f | 5.8 |
| indigo-950 | #1e1a4d | 8.1 |
Code snippets
<div class="bg-purple-950 text-white">...</div>
<p class="text-purple-950 border-purple-950">...</p>.element {
color: var(--color-purple-950);
background-color: oklch(29.1% 0.149 302.717);
border-color: #3c0366;
outline-color: rgb(60 3 102);
}import SwiftUI
extension Color {
static let purple950 = Color(red: 0.235, green: 0.012, blue: 0.400)
}import androidx.compose.ui.graphics.Color
val Purple950 = Color(0xFF3C0366)import 'package:flutter/material.dart';
const purple950 = Color(0xFF3C0366);<!-- res/values/colors.xml -->
<color name="purple_950">#3C0366</color>Frequently asked questions
- What is the hex code for Tailwind purple-950?
- In Tailwind CSS v4, purple-950 is oklch(29.1% 0.149 302.717), which converts to #3C0366 (rgb(60, 3, 102)) in sRGB. In Tailwind v3 the same name was #3B0764.
- What is the difference between purple-950 in Tailwind v3 and v4?
- v3 used the hex #3B0764; v4 redefined the palette in OKLCH as oklch(29.1% 0.149 302.717). In v3, purple-950 was #3B0764. The v4 value is ΔE OK 0.6 away, below the point where most people can tell them apart; v4 is more saturated.
- How do I use purple-950 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-purple-950). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on purple-950?
- White text on purple-950 has a contrast ratio of 15.03:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 1.39:1 and fails AA even for large text. In APCA terms that is Lc −103.7 for white and Lc 0.0 for black.
- Which CSS named color is closest to purple-950?
- The closest is indigo (#4B0082) at ΔE OK 5.7, followed by midnightblue and navy.
Last reviewed by Arielton Oberek.