Tailwind CSS v4 default palette
Tailwind purple-600: #9810FA
In Tailwind CSS v4, purple-600 is defined as --color-purple-600: oklch(55.8% 0.288 302.321), which is #9810FA in hex and rgb(152, 16, 250): a medium-dark, vivid violet. In Tailwind v3, purple-600 was #9333EA.
In OKLCH, purple-600 has a lightness of 55.8%, chroma 0.288 and hue 302.3°. It is the most saturated shade of the purple scale.
The value fits inside sRGB, so the hex #9810FA represents it without loss on any screen.
In v3, purple-600 was #9333EA. The v4 value is ΔE OK 3.6 away; 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-600
| Tailwind v4 token | --color-purple-600 |
|---|---|
| OKLCH (source value) | oklch(55.8% 0.288 302.321) |
| HEX | #9810FA |
| RGB | rgb(152, 16, 250) |
| HSL | hsl(275, 96%, 52%) |
| HWB | hwb(275 6% 2%) |
| CMYK (naive, no ICC profile) | cmyk(39%, 94%, 0%, 2%) |
| Decimal | 9,965,818 |
| Tailwind v3 hex | #9333EA |
| Utility classes | bg-purple-600, text-purple-600, border-purple-600 |
Tailwind purple scale
Contrast and accessibility
On purple-600, white text has a contrast ratio of 5.54:1 and passes AA for normal text; black text reaches 3.78: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-600 | 3.78:1 | Fail | Pass | Fail | Fail | 28.6 |
| White text on purple-600 | 5.54:1 | Pass | Pass | Fail | Pass | −80.9 |
| Purple-600 text on white | 5.54:1 | Pass | Pass | Fail | Pass | 75.5 |
| Purple-600 text on black | 3.78:1 | Fail | Pass | Fail | Fail | −26.2 |
Tints and shades
Each step mixes var(--color-purple-600) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-purple-600), white 25%) in CSS.
Tints (mixed with white)
- 5%
#9d1cfa - 15%
#a734fb - 25%
#b24cfb - 35%
#bc64fc - 45%
#c67cfc - 55%
#d193fd - 65%
#dbabfd - 75%
#e5c3fe - 85%
#f0dbfe - 95%
#faf3ff
Shades (mixed with black)
- 5%
#900fee - 15%
#810ed5 - 25%
#720cbc - 35%
#630aa3 - 45%
#54098a - 55%
#440770 - 65%
#350658 - 75%
#26043f - 85%
#170226 - 95%
#08010d
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, purple-600's complementary color is #658100 (close to olive), its analogous colors are #4A50FF and #C500B7, and its triadic partners are #AF5B00 and #008A7A. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #658100 |
| Analogous | −30°, +30° | #4a50ff#c500b7 |
| Triadic | +120°, +240° | #af5b00#008a7a |
| Split-complementary | +150°, +210° | #907000#008f3b |
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-600 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 |
|---|---|---|
| blueviolet | #8a2be2 | 4.5 |
| darkviolet | #9400d3 | 6.2 |
| darkorchid | #9932cc | 7.5 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| violet-600 | #7f22fe | 5.0 |
| purple-700 | #8200db | 6.6 |
| purple-500 | #ad46ff | 7.3 |
Code snippets
<div class="bg-purple-600 text-white">...</div>
<p class="text-purple-600 border-purple-600">...</p>.element {
color: var(--color-purple-600);
background-color: oklch(55.8% 0.288 302.321);
border-color: #9810fa;
outline-color: rgb(152 16 250);
}import SwiftUI
extension Color {
static let purple600 = Color(red: 0.596, green: 0.063, blue: 0.980)
}import androidx.compose.ui.graphics.Color
val Purple600 = Color(0xFF9810FA)import 'package:flutter/material.dart';
const purple600 = Color(0xFF9810FA);<!-- res/values/colors.xml -->
<color name="purple_600">#9810FA</color>Frequently asked questions
- What is the hex code for Tailwind purple-600?
- In Tailwind CSS v4, purple-600 is oklch(55.8% 0.288 302.321), which converts to #9810FA (rgb(152, 16, 250)) in sRGB. In Tailwind v3 the same name was #9333EA.
- What is the difference between purple-600 in Tailwind v3 and v4?
- v3 used the hex #9333EA; v4 redefined the palette in OKLCH as oklch(55.8% 0.288 302.321). In v3, purple-600 was #9333EA. The v4 value is ΔE OK 3.6 away; v4 is more saturated.
- How do I use purple-600 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-purple-600). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on purple-600?
- White text on purple-600 has a contrast ratio of 5.54:1, which passes AA for normal text but not AAA under WCAG 2.2. Black text reaches 3.78:1 and passes AA only for large text (24 px, or 18.66 px bold, and up). In APCA terms that is Lc −80.9 for white and Lc 28.6 for black.
- Which CSS named color is closest to purple-600?
- The closest is blueviolet (#8A2BE2) at ΔE OK 4.5, followed by darkviolet and darkorchid.
Last reviewed by Arielton Oberek.