Skip to content

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.

violet-100#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

Color codes for violet-100
Tailwind v4 token--color-violet-100
OKLCH (source value)oklch(94.3% 0.029 294.588)
HEX#EDE9FE
RGBrgb(237, 233, 254)
HSLhsl(251, 91%, 95%)
HWBhwb(251 91% 0%)
CMYK (naive, no ICC profile)cmyk(7%, 8%, 0%, 0%)
Decimal15,591,934
Tailwind v3 hex#EDE9FE
Utility classesbg-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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on violet-10017.68:1PassPassPassPass94.5
White text on violet-1001.18:1FailFailFailFail−10.6
Violet-100 text on white1.18:1FailFailFailFail9.1
Violet-100 text on black17.68:1PassPassPassPass−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)

  1. 5%
    #eeeafe
  2. 15%
    #f0ecfe
  3. 25%
    #f2effe
  4. 35%
    #f3f1fe
  5. 45%
    #f5f3fe
  6. 55%
    #f7f5ff
  7. 65%
    #f9f7ff
  8. 75%
    #fbfaff
  9. 85%
    #fcfcff
  10. 95%
    #fefeff

Shades (mixed with black)

  1. 5%
    #e1ddf1
  2. 15%
    #c9c6d8
  3. 25%
    #b2afbf
  4. 35%
    #9a97a5
  5. 45%
    #82808c
  6. 55%
    #6b6972
  7. 65%
    #535259
  8. 75%
    #3b3a40
  9. 85%
    #242326
  10. 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.

Color harmonies
HarmonyRotationColor
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

Nearest CSS named colors
ColorHEXΔE OK
lavender#e6e6fa1.3
lavenderblush#fff0f53.6
aliceblue#f0f8ff4.0

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
purple-100#f3e8ff0.8
fuchsia-100#fae8ff1.8
indigo-100#e0e7ff1.8

Code snippets

Tailwind CSS
<div class="bg-violet-100 text-black">...</div>
<p class="text-violet-100 border-violet-100">...</p>
CSS
.element {
  color: var(--color-violet-100);
  background-color: oklch(94.3% 0.029 294.588);
  border-color: #ede9fe;
  outline-color: rgb(237 233 254);
}
SwiftUI
import SwiftUI

extension Color {
  static let violet100 = Color(red: 0.929, green: 0.914, blue: 0.996)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Violet100 = Color(0xFFEDE9FE)
Flutter
import 'package:flutter/material.dart';

const violet100 = Color(0xFFEDE9FE);
Android XML
<!-- 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.