Tailwind CSS v3 color
Tailwind violet-200 #DDD6FE
Tailwind CSS v3's violet-200 is #DDD6FE. It is a pale muted violet in the violet family. In OKLCH it sits at lightness 0.894, chroma 0.055 and hue 293.3°. The nearest CSS named color is lavender (#E6E6FA), ΔE2000 7.7 away.
- Relative luminance
- 0.7062
- OKLCH L · C · h
- 0.894 · 0.055 · 293.3
- Best text
- Black 15.12:1
- Hue family
- Violet
#DDD6FE color codes
- HEX
#DDD6FE- RGB
rgb(221, 214, 254)- HSL
hsl(251, 95%, 92%)- OKLCH
oklch(0.894 0.055 293.3)- OKLab
oklab(0.894 0.022 -0.050)- CIELAB (D65)
L* 87.30, a* 10.01, b* -18.61- XYZ (D65)
X 71.75, Y 70.62, Z 103.60- CMYK (naive)
cmyk(13%, 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 #DDD6FE accessible?
Black text on it reaches 15.12:1, passing AAA. White text fails at 1.38: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.12:1
- AA passes
- AA large passes
- AAA passes
- APCA Lc +84
-
White text on it
1.38:1
- AA fails
- AA large fails
- AAA fails
- APCA Lc −21
Text is here, unreadable at 1.38:1
-
As text on black
15.12:1
- AA passes
- AA large passes
- AAA passes
- APCA Lc −84
-
As text on white
1.38:1
- AA fails
- AA large fails
- AAA fails
- APCA Lc +18
Text is here, unreadable at 1.38:1
Nearest versions that pass 4.5:1
-
For text on white
#787195 4.57:1
Darkening its OKLCH lightness from 0.89 to 0.57 reaches 4.57:1 on white, keeping the hue.
-
For text on black
#DDD6FE 15.12:1
It already reaches 15.12:1 on black, so no change is needed.
Checking another pair? Use the Contrast Checker.
Studio
Adjust #DDD6FE 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 #DDD6FE
Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #DDD6FE sits at step 200.
Under each step, white and black text on it; a bold figure passes 4.5:1.
Tailwind CSS v3 violet scale
The real Tailwind palette, for comparison with the computed ramp above.
Gamut
How vivid #DDD6FE can get
At its lightness and hue, sRGB reaches OKLCH chroma 0.057; #DDD6FE uses 97% of it. Display P3, which many recent phones and laptops show, reaches 0.062 there: 10% more.
- sRGB
- Display P3
- Rec. 2020
- Dominant wavelength
- OKLCH chroma
- 0.055
- sRGB edge
- 0.057
- Display P3 edge
- 0.062
- Rec. 2020 edge
- 0.064
- Dominant wavelength
- 450 nm
- Excitation purity
- 13%
- Chromaticity
- x 0.2917, y 0.2871
- This color#DDD6FE
- Most vivid in sRGB#DDD6FF
- Most vivid in Display P3oklch(0.894 0.062 293.3)
On a screen without Display P3 the last tile shows the sRGB edge instead.
.accent {
color: #ddd6fe;
}
@media (color-gamut: p3) {
.accent { color: color(display-p3 0.862 0.8367 1); }
}
Mixing
Mixing #DDD6FE
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%#EEEBFF
- OKLab50%#EEEBFF
- OKLCH50%#EEEBFF
Black #000000
- sRGB50%#6F6B7F
- OKLab50%#555263
- OKLCH50%#555263
Its complement #DCE1B7
- sRGB50%#DDDCDB
- OKLab50%#DCDCDC
- OKLCH50%#FFCFCB
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #ddd6fe, white);
color: color-mix(in oklch, #ddd6fe 50%, white);
In use
#DDD6FE 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.12:1 Passes
- Link and body-size textText, 4.5:11.38:1 Fails
- Large headingLarge text, 3:11.38:1 Fails
- Icons, borders and focus ringsNon-text, 3:11.38:1 Fails
For text on this page, the nearest shade that passes is #787195 4.57:1
Dark page
- Button labelText, 4.5:115.12:1 Passes
- Link and body-size textText, 4.5:113.49:1 Passes
- Large headingLarge text, 3:113.49:1 Passes
- Icons, borders and focus ringsNon-text, 3:113.49:1 Passes
Color vision
How #DDD6FE looks with color blindness
Achromatopsia changes it most, ΔE2000 15.5; deuteranopia changes it least, 7.1.
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
#CEDBFF ΔE2000 7.3
Noticeable
Reads as pale muted blue
-
Deuteranopia
No working green (medium-wavelength) cones
#CEDAFD ΔE2000 7.1
Noticeable
Reads as pale grayish blue
-
Tritanopia
No working blue (short-wavelength) cones
#D7DCE3 ΔE2000 13.4
Distinct
Reads as light gray
-
Achromatopsia
No cone color vision; lightness only
#DBDBDB ΔE2000 15.5
Distinct
Reads as light gray
Pairing check
Checked against its complement, #DCE1B7. Their lightness contrast is only 1.02:1, so where hue collapses, add a label, icon or pattern.
| Vision | The pair | ΔE2000 | Verdict |
|---|---|---|---|
| Normal vision | #DDD6FE · #DCE1B7 | 35.5 | Stays distinct |
| Protanopia | #CEDBFF · #E8DDB4 | 30.4 | Stays distinct |
| Deuteranopia | #CEDAFD · #E7DEB9 | 29.1 | Stays distinct |
| Tritanopia | #D7DCE3 · #E1DCD5 | 7.5 | Harder to tell apart |
| Achromatopsia | #DBDBDB · #DDDDDD | 0.5 | Easily confused |
Harmony
Color harmonies for #DDD6FE
Its complement is #DCE1B7, a pale muted yellow.
Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.
Open the Harmony Studio- Base#DDD6FE
- Complement#DCE1B7
Complementary
Open in Harmony Studio- −30°#CBDDFF
- Base#DDD6FE
- +30°#EFD1F1
Analogous
Open in Harmony Studio- Base#DDD6FE
- +120°#FAD3BB
- +240°#B8E9D9
Triadic
Open in Harmony Studio- Base#DDD6FE
- +150°#EEDAB4
- +210°#C8E6C5
Split-complementary
Open in Harmony StudioCode
Design tokens
Ready-to-paste tokens in six formats. Rename them to fit your system.
:root {
--color-violet-200: #ddd6fe;
}
// tailwind.config.js — already built in as violet-200;
// pin the v3 value explicitly like this:
module.exports = {
theme: {
extend: {
colors: {
violet: { 200: '#ddd6fe' },
},
},
},
};
/* app.css — Tailwind CSS v4 */
@import "tailwindcss";
@theme {
/* v4 has its own violet-200; this pins the v3 value. */
--color-violet-200: oklch(0.894 0.055 293.3);
}
{
"color": {
"violet-200": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.8667, 0.8392, 0.9961],
"hex": "#ddd6fe"
},
"$description": "Tailwind CSS v3 violet-200"
}
}
}
import SwiftUI
enum Palette {
static let violet200 = Color(.sRGB, red: 0.867, green: 0.839, blue: 0.996, opacity: 1)
}
import androidx.compose.ui.graphics.Color
object Palette {
val Violet200 = Color(0xFFDDD6FE)
}
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 #DDD6FE 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.