Tailwind CSS v3 color
Tailwind purple-200 #E9D5FF
Tailwind CSS v3's purple-200 is #E9D5FF. It is a pale muted violet in the violet family. In OKLCH it sits at lightness 0.902, chroma 0.060 and hue 306.7°. The nearest CSS named color is thistle (#D8BFD8), ΔE2000 7.6 away.
- Relative luminance
- 0.7213
- OKLCH L · C · h
- 0.902 · 0.060 · 306.7
- Best text
- Black 15.42:1
- Hue family
- Violet
#E9D5FF color codes
- HEX
#E9D5FF- RGB
rgb(233, 213, 255)- HSL
hsl(269, 100%, 92%)- OKLCH
oklch(0.902 0.060 306.7)- OKLab
oklab(0.902 0.036 -0.048)- CIELAB (D65)
L* 88.03, a* 14.54, b* -17.94- XYZ (D65)
X 75.45, Y 72.13, Z 104.54- CMYK (naive)
cmyk(9%, 16%, 0%, 0%)
CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.
Legibility
Contrast: is #E9D5FF accessible?
Black text on it reaches 15.42:1, passing AAA. White text fails at 1.36:1.
WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.
Open the Contrast System-
Black text on it
15.42:1
- AA passes
- AA large passes
- AAA passes
- APCA Lc +85
-
White text on it
1.36:1
- AA fails
- AA large fails
- AAA fails
- APCA Lc −20
Text is here, unreadable at 1.36:1
-
As text on black
15.42:1
- AA passes
- AA large passes
- AAA passes
- APCA Lc −85
-
As text on white
1.36:1
- AA fails
- AA large fails
- AAA fails
- APCA Lc +17
Text is here, unreadable at 1.36:1
Nearest versions that pass 4.5:1
-
For text on white
#816F94 4.53:1
Darkening its OKLCH lightness from 0.90 to 0.57 reaches 4.53:1 on white, keeping the hue.
-
For text on black
#E9D5FF 15.42:1
It already reaches 15.42:1 on black, so no change is needed.
Checking another pair? Use the Contrast Checker.
Studio
Adjust #E9D5FF live
Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.
Scale
Shades and tints of #E9D5FF
Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #E9D5FF sits at step 200.
Under each step, white and black text on it; a bold figure passes 4.5:1.
Tailwind CSS v3 purple scale
The real Tailwind palette, for comparison with the computed ramp above.
Gamut
How vivid #E9D5FF can get
At its lightness and hue, sRGB reaches OKLCH chroma 0.060; #E9D5FF uses 100% of it. Display P3, which many recent phones and laptops show, reaches 0.067 there: 11% more.
- sRGB
- Display P3
- Rec. 2020
- Dominant wavelength
- OKLCH chroma
- 0.060
- sRGB edge
- 0.060
- Display P3 edge
- 0.067
- Rec. 2020 edge
- 0.068
- Dominant wavelength
- Complementary 563 nm
- Excitation purity
- 14%
- Chromaticity
- x 0.2993, y 0.2861
- This color#E9D5FF
- Most vivid in sRGB#E9D5FF
- Most vivid in Display P3oklch(0.902 0.067 306.7)
On a screen without Display P3 the last tile shows the sRGB edge instead.
.accent {
color: #e9d5ff;
}
@media (color-gamut: p3) {
.accent { color: color(display-p3 0.9035 0.8339 1); }
}
Mixing
Mixing #E9D5FF
Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.
White #FFFFFF
- sRGB50%#F4EAFF
- OKLab50%#F4EAFF
- OKLCH50%#F4EAFF
Black #000000
- sRGB50%#756B80
- OKLab50%#5A5163
- OKLCH50%#5A5163
Its complement #D4E7BC
- sRGB50%#DFDEDE
- OKLab50%#DFDFDF
- OKLCH50%#B2EAF9
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #e9d5ff, white);
color: color-mix(in oklch, #e9d5ff 50%, white);
In use
#E9D5FF in an interface
A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.
Light page
- Button labelText, 4.5:115.42:1 Passes
- Link and body-size textText, 4.5:11.36:1 Fails
- Large headingLarge text, 3:11.36:1 Fails
- Icons, borders and focus ringsNon-text, 3:11.36:1 Fails
For text on this page, the nearest shade that passes is #816F94 4.53:1
Dark page
- Button labelText, 4.5:115.42:1 Passes
- Link and body-size textText, 4.5:113.76:1 Passes
- Large headingLarge text, 3:113.76:1 Passes
- Icons, borders and focus ringsNon-text, 3:113.76:1 Passes
Color vision
How #E9D5FF looks with color blindness
Achromatopsia changes it most, ΔE2000 17.1; deuteranopia changes it least, 10.8.
Simulated with Machado et al. (2009) at full severity, in linear light.
Simulate a whole page What each type sees-
Protanopia
No working red (long-wavelength) cones
#CEDCFF ΔE2000 11.7
Distinct
Reads as pale muted blue
-
Deuteranopia
No working green (medium-wavelength) cones
#D2DDFE ΔE2000 10.8
Distinct
Reads as pale grayish blue
-
Tritanopia
No working blue (short-wavelength) cones
#E6DAE3 ΔE2000 11.2
Distinct
Reads as off-white
-
Achromatopsia
No cone color vision; lightness only
#DDDDDD ΔE2000 17.1
Distinct
Reads as light gray
Pairing check
Checked against its complement, #D4E7BC. Their lightness contrast is only 1.03:1, so where hue collapses, add a label, icon or pattern.
| Vision | The pair | ΔE2000 | Verdict |
|---|---|---|---|
| Normal vision | #E9D5FF · #D4E7BC | 39.7 | Stays distinct |
| Protanopia | #CEDCFF · #ECE1B9 | 29.7 | Stays distinct |
| Deuteranopia | #D2DDFE · #E9E0BE | 27.6 | Stays distinct |
| Tritanopia | #E6DAE3 · #D6E3DB | 15.3 | Stays distinct |
| Achromatopsia | #DDDDDD · #E0E0E0 | 0.7 | Easily confused |
Harmony
Color harmonies for #E9D5FF
Its complement is #D4E7BC, a pale muted green.
Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.
Open the Harmony Studio- Base#E9D5FF
- Complement#D4E7BC
Complementary
Open in Harmony Studio- −30°#D6DDFF
- Base#E9D5FF
- +30°#FAD0EE
Analogous
Open in Harmony Studio- Base#E9D5FF
- +120°#FBD8B5
- +240°#B2ECE5
Triadic
Open in Harmony Studio- Base#E9D5FF
- +150°#EAE0B2
- +210°#BFEBCF
Split-complementary
Open in Harmony StudioCode
Design tokens
Ready-to-paste tokens in six formats. Rename them to fit your system.
:root {
--color-purple-200: #e9d5ff;
}
// tailwind.config.js — already built in as purple-200;
// pin the v3 value explicitly like this:
module.exports = {
theme: {
extend: {
colors: {
purple: { 200: '#e9d5ff' },
},
},
},
};
/* app.css — Tailwind CSS v4 */
@import "tailwindcss";
@theme {
/* v4 has its own purple-200; this pins the v3 value. */
--color-purple-200: oklch(0.902 0.060 306.7);
}
{
"color": {
"purple-200": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.9137, 0.8353, 1],
"hex": "#e9d5ff"
},
"$description": "Tailwind CSS v3 purple-200"
}
}
}
import SwiftUI
enum Palette {
static let purple200 = Color(.sRGB, red: 0.914, green: 0.835, blue: 1.000, opacity: 1)
}
import androidx.compose.ui.graphics.Color
object Palette {
val Purple200 = Color(0xFFE9D5FF)
}
Matches
The nearest match in each system
The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.
Tools
Open #E9D5FF in the tools
Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.
- Color InspectorEvery format, its names, contrast and color vision in one panel.
- Contrast SystemBlack and white text on this color, with fixes in both directions.
- Harmony StudioPalettes built from this color, walked to a contrast target if you ask.
- Color Space ConverterThe same color in 34 notations, with its gamut headroom.
- Color Name FinderThe nearest of 1,055 color names by ΔE2000.