Skip to content

Tailwind CSS v4 default palette

Tailwind violet-200: #DDD6FF

In Tailwind CSS v4, violet-200 is defined as --color-violet-200: oklch(89.4% 0.057 293.283), which is #DDD6FF in hex and rgb(221, 214, 255): a very light, muted blue-violet. In Tailwind v3, violet-200 was #DDD6FE.

violet-200#DDD6FF

In OKLCH, violet-200 has a lightness of 89.4%, chroma 0.057 and hue 293.3°.

This OKLCH value lies outside sRGB. The hex #DDD6FF is the sRGB fallback from the CSS Color 4 gamut mapping algorithm; on Display P3 screens browsers show a more saturated color, close to color(display-p3 0.8615 0.8388 0.988).

In v3, violet-200 was #DDD6FE. The v4 value is ΔE OK 0.2 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-200

Color codes for violet-200
Tailwind v4 token--color-violet-200
OKLCH (source value)oklch(89.4% 0.057 293.283)
HEX#DDD6FF
RGBrgb(221, 214, 255)
HSLhsl(250, 100%, 92%)
HWBhwb(250 84% 0%)
CMYK (naive, no ICC profile)cmyk(13%, 16%, 0%, 0%)
Decimal14,538,495
Display P3color(display-p3 0.8615 0.8388 0.988)
Tailwind v3 hex#DDD6FE
Utility classesbg-violet-200, text-violet-200, border-violet-200

Tailwind violet scale

Contrast and accessibility

On violet-200, black text has a contrast ratio of 15.13:1 and passes AAA at any text size; white text reaches 1.38: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-20015.13:1PassPassPassPass84.8
White text on violet-2001.38:1FailFailFailFail−21.5
Violet-200 text on white1.38:1FailFailFailFail18.8
Violet-200 text on black15.13:1PassPassPassPass−84.7

Tints and shades

Each step mixes var(--color-violet-200) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-violet-200), white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #dfd8ff
  2. 15%
    #e2dcff
  3. 25%
    #e6e0ff
  4. 35%
    #e9e4ff
  5. 45%
    #ece8ff
  6. 55%
    #f0edff
  7. 65%
    #f3f1ff
  8. 75%
    #f7f5ff
  9. 85%
    #faf9ff
  10. 95%
    #fdfdff

Shades (mixed with black)

  1. 5%
    #d2cbf2
  2. 15%
    #bcb6d9
  3. 25%
    #a6a1bf
  4. 35%
    #908ba6
  5. 45%
    #7a768c
  6. 55%
    #636073
  7. 65%
    #4d4b59
  8. 75%
    #373640
  9. 85%
    #212026
  10. 95%
    #0b0b0d

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, violet-200's complementary color is #DBE1B6 (close to wheat), its analogous colors are #C9DDFF and #EFD0F2, and its triadic partners are #FBD3BA and #B6E9D9. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#dbe1b6
Analogous−30°, +30°#c9ddff#efd0f2
Triadic+120°, +240°#fbd3ba#b6e9d9
Split-complementary+150°, +210°#eed9b2#c7e6c4

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-200 is a cool color: its hue is 250° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.

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#e6e6fa4.8
gainsboro#dcdcdc5.7
lightgray#d3d3d36.3

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
purple-200#e9d4ff1.7
indigo-200#c6d2ff3.2
fuchsia-200#f6cfff3.7

Code snippets

Tailwind CSS
<div class="bg-violet-200 text-black">...</div>
<p class="text-violet-200 border-violet-200">...</p>
CSS
.element {
  color: var(--color-violet-200);
  background-color: oklch(89.4% 0.057 293.283);
  border-color: #ddd6ff;
  outline-color: rgb(221 214 255);
}
SwiftUI
import SwiftUI

extension Color {
  static let violet200 = Color(red: 0.867, green: 0.839, blue: 1.000)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const violet200 = Color(0xFFDDD6FF);
Android XML
<!-- res/values/colors.xml -->
<color name="violet_200">#DDD6FF</color>

Frequently asked questions

What is the hex code for Tailwind violet-200?
In Tailwind CSS v4, violet-200 is oklch(89.4% 0.057 293.283), which converts to #DDD6FF (rgb(221, 214, 255)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #DDD6FE.
What is the difference between violet-200 in Tailwind v3 and v4?
v3 used the hex #DDD6FE; v4 redefined the palette in OKLCH as oklch(89.4% 0.057 293.283). In v3, violet-200 was #DDD6FE. The v4 value is ΔE OK 0.2 away, below the point where most people can tell them apart.
How do I use violet-200 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-violet-200). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on violet-200?
White text on violet-200 has a contrast ratio of 1.38:1, which fails AA even for large text under WCAG 2.2. Black text reaches 15.13:1 and passes both AA and AAA. In APCA terms that is Lc −21.5 for white and Lc 84.8 for black.
Which CSS named color is closest to violet-200?
The closest is lavender (#E6E6FA) at ΔE OK 4.8, followed by gainsboro and lightgray.

Last reviewed by Arielton Oberek.