Skip to content

Tailwind CSS v4 default palette

Tailwind purple-200: #E9D4FF

In Tailwind CSS v4, purple-200 is defined as --color-purple-200: oklch(90.2% 0.063 306.703), which is #E9D4FF in hex and rgb(233, 212, 255): a pale, muted violet. In Tailwind v3, purple-200 was #E9D5FF.

purple-200#E9D4FF

In OKLCH, purple-200 has a lightness of 90.2%, chroma 0.063 and hue 306.7°.

This OKLCH value lies outside sRGB. The hex #E9D4FF 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.9012 0.836 0.9922).

In v3, purple-200 was #E9D5FF. The v4 value is ΔE OK 0.3 away, below the point where most people can tell them apart.

Tailwind purple is a redder, more magenta-leaning violet than violet, with very high chroma in its mid shades.

Color codes for purple-200

Color codes for purple-200
Tailwind v4 token--color-purple-200
OKLCH (source value)oklch(90.2% 0.063 306.703)
HEX#E9D4FF
RGBrgb(233, 212, 255)
HSLhsl(269, 100%, 92%)
HWBhwb(269 83% 0%)
CMYK (naive, no ICC profile)cmyk(9%, 17%, 0%, 0%)
Decimal15,324,415
Display P3color(display-p3 0.9012 0.836 0.9922)
Tailwind v3 hex#E9D5FF
Utility classesbg-purple-200, text-purple-200, border-purple-200

Tailwind purple scale

Contrast and accessibility

On purple-200, black text has a contrast ratio of 15.32:1 and passes AAA at any text size; white text reaches 1.37: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 purple-20015.32:1PassPassPassPass85.6
White text on purple-2001.37:1FailFailFailFail−20.7
Purple-200 text on white1.37:1FailFailFailFail18.1
Purple-200 text on black15.32:1PassPassPassPass−85.5

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #ead6ff
  2. 15%
    #ecdaff
  3. 25%
    #efdfff
  4. 35%
    #f1e3ff
  5. 45%
    #f3e7ff
  6. 55%
    #f5ecff
  7. 65%
    #f7f0ff
  8. 75%
    #faf4ff
  9. 85%
    #fcf9ff
  10. 95%
    #fefdff

Shades (mixed with black)

  1. 5%
    #ddc9f2
  2. 15%
    #c6b4d9
  3. 25%
    #af9fbf
  4. 35%
    #978aa6
  5. 45%
    #80758c
  6. 55%
    #695f73
  7. 65%
    #524a59
  8. 75%
    #3a3540
  9. 85%
    #232026
  10. 95%
    #0c0b0d

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, purple-200's complementary color is #D4E7BA (close to palegoldenrod), its analogous colors are #D3DCFF and #FBCFEE, and its triadic partners are #FCD7B3 and #AFEDE5. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#d4e7ba
Analogous−30°, +30°#d3dcff#fbcfee
Triadic+120°, +240°#fcd7b3#afede5
Split-complementary+150°, +210°#eadfb0#bdecce

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 purple-200 is a cool color: its hue is 269° 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.9
gainsboro#dcdcdc6.3
lightgray#d3d3d37.2

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
violet-200#ddd6ff1.7
fuchsia-200#f6cfff2.0
pink-200#fccee83.9

Code snippets

Tailwind CSS
<div class="bg-purple-200 text-black">...</div>
<p class="text-purple-200 border-purple-200">...</p>
CSS
.element {
  color: var(--color-purple-200);
  background-color: oklch(90.2% 0.063 306.703);
  border-color: #e9d4ff;
  outline-color: rgb(233 212 255);
}
SwiftUI
import SwiftUI

extension Color {
  static let purple200 = Color(red: 0.914, green: 0.831, blue: 1.000)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const purple200 = Color(0xFFE9D4FF);
Android XML
<!-- res/values/colors.xml -->
<color name="purple_200">#E9D4FF</color>

Frequently asked questions

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

Last reviewed by Arielton Oberek.