Tailwind CSS v3.4 color family
Tailwind purple 11 shades, 50 to 950
Purple is one of the 22 color families in Tailwind CSS v3.4, with eleven shades from 50 to 950. Its 500 shade, #A855F7, sits at OKLCH hue 303.9°. Lightness runs from 0.977 at 50 to 0.291 at 950.
- 500 shade
- #A855F7
- OKLCH hue at 500
- 303.9°
- Body text on white
- 600 to 950
- Body text on black
- 50 to 500
Tailwind CSS 4.3.3
purple: current colors
11 shades with exact official OKLCH values. Use bg-purple-500, text-purple-500 or border-purple-500 in Tailwind. Wide-gamut colors are preserved; these are not the v3 hex values.
| Color | Exact OKLCH | CSS variable |
|---|---|---|
| purple-50 | oklch(97.7% 0.014 308.299) | --color-purple-50 |
| purple-100 | oklch(94.6% 0.033 307.174) | --color-purple-100 |
| purple-200 | oklch(90.2% 0.063 306.703) | --color-purple-200 |
| purple-300 | oklch(82.7% 0.119 306.383) | --color-purple-300 |
| purple-400 | oklch(71.4% 0.203 305.504) | --color-purple-400 |
| purple-500 | oklch(62.7% 0.265 303.9) | --color-purple-500 |
| purple-600 | oklch(55.8% 0.288 302.321) | --color-purple-600 |
| purple-700 | oklch(49.6% 0.265 301.924) | --color-purple-700 |
| purple-800 | oklch(43.8% 0.218 303.724) | --color-purple-800 |
| purple-900 | oklch(38.1% 0.176 304.987) | --color-purple-900 |
| purple-950 | oklch(29.1% 0.149 302.717) | --color-purple-950 |
Source: Tailwind CSS 4.3.3 theme.css (MIT). Values are pinned to this release. Older v3 reference values below are kept separately for existing projects.
Scale
Every shade, 50 to 950
Each shade has a page of its own. Under each, white and black text on it; a bold figure passes 4.5:1.
Values
Hex, RGB and OKLCH values
The Tailwind CSS v3.4 values, with the contrast of white and black text on each shade.
| Shade | HEX | RGB | OKLCH | White text | Black text |
|---|---|---|---|---|---|
| purple-50 | #FAF5FF | rgb(250, 245, 255) | oklch(0.977 0.014 308.3) | 1.07 | 19.56 |
| purple-100 | #F3E8FF | rgb(243, 232, 255) | oklch(0.946 0.033 307.2) | 1.17 | 17.79 |
| purple-200 | #E9D5FF | rgb(233, 213, 255) | oklch(0.902 0.060 306.7) | 1.36 | 15.42 |
| purple-300 | #D8B4FE | rgb(216, 180, 254) | oklch(0.827 0.108 306.4) | 1.76 | 11.87 |
| purple-400 | #C084FC | rgb(192, 132, 252) | oklch(0.722 0.177 305.5) | 2.64 | 7.94 |
| purple-500 | #A855F7 | rgb(168, 85, 247) | oklch(0.627 0.233 303.9) | 3.95 | 5.30 |
| purple-600 | #9333EA | rgb(147, 51, 234) | oklch(0.558 0.252 302.3) | 5.38 | 3.90 |
| purple-700 | #7E22CE | rgb(126, 34, 206) | oklch(0.496 0.237 301.9) | 6.98 | 3.00 |
| purple-800 | #6B21A8 | rgb(107, 33, 168) | oklch(0.438 0.198 303.7) | 8.72 | 2.40 |
| purple-900 | #581C87 | rgb(88, 28, 135) | oklch(0.381 0.166 305.0) | 10.87 | 1.93 |
| purple-950 | #3B0764 | rgb(59, 7, 100) | oklch(0.291 0.143 302.7) | 14.99 | 1.40 |
Legibility
Which shades pass on each other
Every shade as text on every other shade. 36 of 110 pairings pass 4.5:1 for body text, and 16 more pass 3:1 for large text.
| Text shade, then background shade | 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 50 | same shade | 1.09 | 1.26 | 1.64 | 2.46 | 3.68 | 5.01 | 6.50 | 8.12 | 10.13 | 13.97 |
| 100 | 1.09 | same shade | 1.15 | 1.49 | 2.23 | 3.35 | 4.56 | 5.91 | 7.39 | 9.21 | 12.70 |
| 200 | 1.26 | 1.15 | same shade | 1.29 | 1.94 | 2.90 | 3.95 | 5.12 | 6.40 | 7.98 | 11.01 |
| 300 | 1.64 | 1.49 | 1.29 | same shade | 1.49 | 2.23 | 3.04 | 3.95 | 4.93 | 6.15 | 8.48 |
| 400 | 2.46 | 2.23 | 1.94 | 1.49 | same shade | 1.49 | 2.03 | 2.64 | 3.30 | 4.11 | 5.67 |
| 500 | 3.68 | 3.35 | 2.90 | 2.23 | 1.49 | same shade | 1.36 | 1.76 | 2.20 | 2.74 | 3.79 |
| 600 | 5.01 | 4.56 | 3.95 | 3.04 | 2.03 | 1.36 | same shade | 1.29 | 1.62 | 2.02 | 2.78 |
| 700 | 6.50 | 5.91 | 5.12 | 3.95 | 2.64 | 1.76 | 1.29 | same shade | 1.24 | 1.55 | 2.14 |
| 800 | 8.12 | 7.39 | 6.40 | 4.93 | 3.30 | 2.20 | 1.62 | 1.24 | same shade | 1.24 | 1.71 |
| 900 | 10.13 | 9.21 | 7.98 | 6.15 | 4.11 | 2.74 | 2.02 | 1.55 | 1.24 | same shade | 1.37 |
| 950 | 13.97 | 12.70 | 11.01 | 8.48 | 5.67 | 3.79 | 2.78 | 2.14 | 1.71 | 1.37 | same shade |
Rows are the text shade, columns the background. A bold figure on a tinted cell passes 4.5:1 for body text; a plain one passes 3:1 for large text only; a faint one fails.
Color vision
The scale with color blindness
The same eleven shades as seen with each color vision deficiency. Lightness keeps a ramp in order even where its hue collapses.
Simulated with Machado et al. (2009) at full severity, in linear light.
What each type seesTypical vision
Closest neighbors: 800 and 900, ΔE2000 5.7
Protanopia
Closest neighbors: 50 and 100, ΔE2000 5.0
Deuteranopia
Closest neighbors: 50 and 100, ΔE2000 4.7
Tritanopia
Closest neighbors: 50 and 100, ΔE2000 3.1
Achromatopsia
Closest neighbors: 50 and 100, ΔE2000 2.3
Code
Design tokens
The whole family in six formats, ready to paste.
:root {
--color-purple-50: #faf5ff;
--color-purple-100: #f3e8ff;
--color-purple-200: #e9d5ff;
--color-purple-300: #d8b4fe;
--color-purple-400: #c084fc;
--color-purple-500: #a855f7;
--color-purple-600: #9333ea;
--color-purple-700: #7e22ce;
--color-purple-800: #6b21a8;
--color-purple-900: #581c87;
--color-purple-950: #3b0764;
}
// tailwind.config.js — purple is built in; this pins the v3.4 values.
module.exports = {
theme: {
extend: {
colors: {
purple: {
50: '#faf5ff',
100: '#f3e8ff',
200: '#e9d5ff',
300: '#d8b4fe',
400: '#c084fc',
500: '#a855f7',
600: '#9333ea',
700: '#7e22ce',
800: '#6b21a8',
900: '#581c87',
950: '#3b0764',
},
},
},
},
};
/* app.css — Tailwind CSS v4 */
@import "tailwindcss";
@theme {
/* v4 has its own purple; these pin the v3 values. */
--color-purple-50: oklch(0.977 0.014 308.3);
--color-purple-100: oklch(0.946 0.033 307.2);
--color-purple-200: oklch(0.902 0.060 306.7);
--color-purple-300: oklch(0.827 0.108 306.4);
--color-purple-400: oklch(0.722 0.177 305.5);
--color-purple-500: oklch(0.627 0.233 303.9);
--color-purple-600: oklch(0.558 0.252 302.3);
--color-purple-700: oklch(0.496 0.237 301.9);
--color-purple-800: oklch(0.438 0.198 303.7);
--color-purple-900: oklch(0.381 0.166 305.0);
--color-purple-950: oklch(0.291 0.143 302.7);
}
{
"color": {
"purple": {
"50": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.9804, 0.9608, 1],
"hex": "#faf5ff"
}
},
"100": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.9529, 0.9098, 1],
"hex": "#f3e8ff"
}
},
"200": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.9137, 0.8353, 1],
"hex": "#e9d5ff"
}
},
"300": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.8471, 0.7059, 0.9961],
"hex": "#d8b4fe"
}
},
"400": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.7529, 0.5176, 0.9882],
"hex": "#c084fc"
}
},
"500": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.6588, 0.3333, 0.9686],
"hex": "#a855f7"
}
},
"600": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.5765, 0.2, 0.9176],
"hex": "#9333ea"
}
},
"700": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.4941, 0.1333, 0.8078],
"hex": "#7e22ce"
}
},
"800": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.4196, 0.1294, 0.6588],
"hex": "#6b21a8"
}
},
"900": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.3451, 0.1098, 0.5294],
"hex": "#581c87"
}
},
"950": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.2314, 0.0275, 0.3922],
"hex": "#3b0764"
}
}
}
}
}
import SwiftUI
enum Palette {
static let purple50 = Color(.sRGB, red: 0.980, green: 0.961, blue: 1.000, opacity: 1)
static let purple100 = Color(.sRGB, red: 0.953, green: 0.910, blue: 1.000, opacity: 1)
static let purple200 = Color(.sRGB, red: 0.914, green: 0.835, blue: 1.000, opacity: 1)
static let purple300 = Color(.sRGB, red: 0.847, green: 0.706, blue: 0.996, opacity: 1)
static let purple400 = Color(.sRGB, red: 0.753, green: 0.518, blue: 0.988, opacity: 1)
static let purple500 = Color(.sRGB, red: 0.659, green: 0.333, blue: 0.969, opacity: 1)
static let purple600 = Color(.sRGB, red: 0.576, green: 0.200, blue: 0.918, opacity: 1)
static let purple700 = Color(.sRGB, red: 0.494, green: 0.133, blue: 0.808, opacity: 1)
static let purple800 = Color(.sRGB, red: 0.420, green: 0.129, blue: 0.659, opacity: 1)
static let purple900 = Color(.sRGB, red: 0.345, green: 0.110, blue: 0.529, opacity: 1)
static let purple950 = Color(.sRGB, red: 0.231, green: 0.027, blue: 0.392, opacity: 1)
}
import androidx.compose.ui.graphics.Color
object Palette {
val Purple50 = Color(0xFFFAF5FF)
val Purple100 = Color(0xFFF3E8FF)
val Purple200 = Color(0xFFE9D5FF)
val Purple300 = Color(0xFFD8B4FE)
val Purple400 = Color(0xFFC084FC)
val Purple500 = Color(0xFFA855F7)
val Purple600 = Color(0xFF9333EA)
val Purple700 = Color(0xFF7E22CE)
val Purple800 = Color(0xFF6B21A8)
val Purple900 = Color(0xFF581C87)
val Purple950 = Color(0xFF3B0764)
}
Families
Other Tailwind families
The rest of the Tailwind CSS v3.4 palette, in the order Tailwind lists it.