Tailwind CSS v4 default palette
Tailwind violet-100: #EDE9FE
In Tailwind CSS v4, violet-100 is defined as --color-violet-100: oklch(94.3% 0.029 294.588), which is #EDE9FE in hex and rgb(237, 233, 254): an off-white with a blue-violet tint. In Tailwind v3, violet-100 was #EDE9FE.
In OKLCH, violet-100 has a lightness of 94.3%, chroma 0.029 and hue 294.6°.
The value fits inside sRGB, so the hex #EDE9FE represents it without loss on any screen.
In v3, violet-100 was #EDE9FE. The v4 value is ΔE OK 0.1 away, below the point where most people can tell them apart.
Tailwind violet sits between indigo and purple, a popular choice for AI and creative-tool branding.
Color codes for violet-100
| Tailwind v4 token | --color-violet-100 |
|---|---|
| OKLCH (source value) | oklch(94.3% 0.029 294.588) |
| HEX | #EDE9FE |
| RGB | rgb(237, 233, 254) |
| HSL | hsl(251, 91%, 95%) |
| HWB | hwb(251 91% 0%) |
| CMYK (naive, no ICC profile) | cmyk(7%, 8%, 0%, 0%) |
| Decimal | 15,591,934 |
| Tailwind v3 hex | #EDE9FE |
| Utility classes | bg-violet-100, text-violet-100, border-violet-100 |
Tailwind violet scale
Contrast and accessibility
On violet-100, black text has a contrast ratio of 17.68:1 and passes AAA at any text size; white text reaches 1.18: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 violet-100 | 17.68:1 | Pass | Pass | Pass | Pass | 94.5 |
| White text on violet-100 | 1.18:1 | Fail | Fail | Fail | Fail | −10.6 |
| Violet-100 text on white | 1.18:1 | Fail | Fail | Fail | Fail | 9.1 |
| Violet-100 text on black | 17.68:1 | Pass | Pass | Pass | Pass | −95.1 |
Tints and shades
Each step mixes var(--color-violet-100) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-violet-100), white 25%) in CSS.
Tints (mixed with white)
- 5%
#eeeafe - 15%
#f0ecfe - 25%
#f2effe - 35%
#f3f1fe - 45%
#f5f3fe - 55%
#f7f5ff - 65%
#f9f7ff - 75%
#fbfaff - 85%
#fcfcff - 95%
#fefeff
Shades (mixed with black)
- 5%
#e1ddf1 - 15%
#c9c6d8 - 25%
#b2afbf - 35%
#9a97a5 - 45%
#82808c - 55%
#6b6972 - 65%
#535259 - 75%
#3b3a40 - 85%
#242326 - 95%
#0c0c0d
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, violet-100's complementary color is #EBEFD9 (close to antiquewhite), its analogous colors are #E3ECFF and #F7E6F7, and its triadic partners are #FDE8DA and #D9F3EB. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #ebefd9 |
| Analogous | −30°, +30° | #e3ecff#f7e6f7 |
| Triadic | +120°, +240° | #fde8da#d9f3eb |
| Split-complementary | +150°, +210° | #f5ebd7#e1f2e0 |
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 violet-100 is close to neutral: its OKLCH chroma is only 0.029, so its temperature comes from context. The faint 251° hue gives it a slightly cool cast.
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 |
|---|---|---|
| lavender | #e6e6fa | 1.3 |
| lavenderblush | #fff0f5 | 3.6 |
| aliceblue | #f0f8ff | 4.0 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| purple-100 | #f3e8ff | 0.8 |
| fuchsia-100 | #fae8ff | 1.8 |
| indigo-100 | #e0e7ff | 1.8 |
Code snippets
<div class="bg-violet-100 text-black">...</div>
<p class="text-violet-100 border-violet-100">...</p>.element {
color: var(--color-violet-100);
background-color: oklch(94.3% 0.029 294.588);
border-color: #ede9fe;
outline-color: rgb(237 233 254);
}import SwiftUI
extension Color {
static let violet100 = Color(red: 0.929, green: 0.914, blue: 0.996)
}import androidx.compose.ui.graphics.Color
val Violet100 = Color(0xFFEDE9FE)import 'package:flutter/material.dart';
const violet100 = Color(0xFFEDE9FE);<!-- res/values/colors.xml -->
<color name="violet_100">#EDE9FE</color>Frequently asked questions
- What is the hex code for Tailwind violet-100?
- In Tailwind CSS v4, violet-100 is oklch(94.3% 0.029 294.588), which converts to #EDE9FE (rgb(237, 233, 254)) in sRGB. In Tailwind v3 the same name was #EDE9FE.
- What is the difference between violet-100 in Tailwind v3 and v4?
- v3 used the hex #EDE9FE; v4 redefined the palette in OKLCH as oklch(94.3% 0.029 294.588). In v3, violet-100 was #EDE9FE. The v4 value is ΔE OK 0.1 away, below the point where most people can tell them apart.
- How do I use violet-100 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-violet-100). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on violet-100?
- White text on violet-100 has a contrast ratio of 1.18:1, which fails AA even for large text under WCAG 2.2. Black text reaches 17.68:1 and passes both AA and AAA. In APCA terms that is Lc −10.6 for white and Lc 94.5 for black.
- Which CSS named color is closest to violet-100?
- The closest is lavender (#E6E6FA) at ΔE OK 1.3, followed by lavenderblush and aliceblue.
Last reviewed by Arielton Oberek.