Tailwind CSS v3 color

Tailwind purple-200 #E9D5FF

Tailwind CSS v3's purple-200 is #E9D5FF. It is a pale muted violet in the violet family. In OKLCH it sits at lightness 0.902, chroma 0.060 and hue 306.7°. The nearest CSS named color is thistle (#D8BFD8), ΔE2000 7.6 away.

Relative luminance
0.7213
OKLCH L · C · h
0.902 · 0.060 · 306.7
Best text
Black 15.42:1
Hue family
Violet

#E9D5FF color codes

HEX
#E9D5FF
RGB
rgb(233, 213, 255)
HSL
hsl(269, 100%, 92%)
OKLCH
oklch(0.902 0.060 306.7)
OKLab
oklab(0.902 0.036 -0.048)
CIELAB (D65)
L* 88.03, a* 14.54, b* -17.94
XYZ (D65)
X 75.45, Y 72.13, Z 104.54
CMYK (naive)
cmyk(9%, 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 #E9D5FF accessible?

Black text on it reaches 15.42:1, passing AAA. White text fails at 1.36: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.42:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +85
  • White text on it

    1.36:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc −20

    Text is here, unreadable at 1.36:1

  • As text on black

    15.42:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −85
  • As text on white

    1.36:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc +17

    Text is here, unreadable at 1.36:1

Nearest versions that pass 4.5:1

  • For text on white

    #816F94 4.53:1

    Darkening its OKLCH lightness from 0.90 to 0.57 reaches 4.53:1 on white, keeping the hue.

  • For text on black

    #E9D5FF 15.42:1

    It already reaches 15.42:1 on black, so no change is needed.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #E9D5FF 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.

The studio needs JavaScript.

Scale

Shades and tints of #E9D5FF

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #E9D5FF sits at step 200.

  1. 50#F8F2FF
    White
    1.09
    Black
    19.13
  2. 100#F1E5FF
    White
    1.20
    Black
    17.39
  3. 200This color#E9D5FF
    White
    1.36
    Black
    15.42
  4. 300#C7B5DB
    White
    1.89
    Black
    11.06
  5. 400#AB98BF
    White
    2.63
    Black
    7.97
  6. 500#8F7DA3
    White
    3.72
    Black
    5.63
  7. 600#78668A
    White
    5.16
    Black
    4.06
  8. 700#604F72
    White
    7.34
    Black
    2.85
  9. 800#473857
    White
    10.65
    Black
    1.97
  10. 900#2F223D
    White
    14.81
    Black
    1.41
  11. 950#1B1026
    White
    18.28
    Black
    1.14

Under each step, white and black text on it; a bold figure passes 4.5:1.

Tailwind CSS v3 purple scale

The real Tailwind palette, for comparison with the computed ramp above.

  1. 50#FAF5FF
    White
    1.07
    Black
    19.56
  2. 100#F3E8FF
    White
    1.17
    Black
    17.79
  3. 200This color#E9D5FF
    White
    1.36
    Black
    15.42
  4. 300#D8B4FE
    White
    1.76
    Black
    11.87
  5. 400#C084FC
    White
    2.64
    Black
    7.94
  6. 500#A855F7
    White
    3.95
    Black
    5.30
  7. 600#9333EA
    White
    5.38
    Black
    3.90
  8. 700#7E22CE
    White
    6.98
    Black
    3.00
  9. 800#6B21A8
    White
    8.72
    Black
    2.40
  10. 900#581C87
    White
    10.87
    Black
    1.93
  11. 950#3B0764
    White
    14.99
    Black
    1.40

Gamut

How vivid #E9D5FF can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.060; #E9D5FF uses 100% of it. Display P3, which many recent phones and laptops show, reaches 0.067 there: 11% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.060
sRGB edge
0.060
Display P3 edge
0.067
Rec. 2020 edge
0.068
Dominant wavelength
Complementary 563 nm
Excitation purity
14%
Chromaticity
x 0.2993, y 0.2861
  • This color#E9D5FF
  • Most vivid in sRGB#E9D5FF
  • Most vivid in Display P3oklch(0.902 0.067 306.7)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #e9d5ff;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.9035 0.8339 1); }
}

Mixing

Mixing #E9D5FF

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%#F4EAFF
  • OKLab50%#F4EAFF
  • OKLCH50%#F4EAFF

Black #000000

  • sRGB50%#756B80
  • OKLab50%#5A5163
  • OKLCH50%#5A5163

Its complement #D4E7BC

  • sRGB50%#DFDEDE
  • OKLab50%#DFDFDF
  • OKLCH50%#B2EAF9
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #e9d5ff, white);
color: color-mix(in oklch, #e9d5ff 50%, white);

In use

#E9D5FF 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.42:1 Passes
  • Link and body-size textText, 4.5:11.36:1 Fails
  • Large headingLarge text, 3:11.36:1 Fails
  • Icons, borders and focus ringsNon-text, 3:11.36:1 Fails

For text on this page, the nearest shade that passes is #816F94 4.53:1

Dark page

  • Button labelText, 4.5:115.42:1 Passes
  • Link and body-size textText, 4.5:113.76:1 Passes
  • Large headingLarge text, 3:113.76:1 Passes
  • Icons, borders and focus ringsNon-text, 3:113.76:1 Passes

Color vision

How #E9D5FF looks with color blindness

Achromatopsia changes it most, ΔE2000 17.1; deuteranopia changes it least, 10.8.

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

    #CEDCFF ΔE2000 11.7

    Distinct

    Reads as pale muted blue

  • Deuteranopia

    No working green (medium-wavelength) cones

    #D2DDFE ΔE2000 10.8

    Distinct

    Reads as pale grayish blue

  • Tritanopia

    No working blue (short-wavelength) cones

    #E6DAE3 ΔE2000 11.2

    Distinct

    Reads as off-white

  • Achromatopsia

    No cone color vision; lightness only

    #DDDDDD ΔE2000 17.1

    Distinct

    Reads as light gray

Pairing check

Checked against its complement, #D4E7BC. Their lightness contrast is only 1.03:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#E9D5FF · #D4E7BC39.7Stays distinct
Protanopia#CEDCFF · #ECE1B929.7Stays distinct
Deuteranopia#D2DDFE · #E9E0BE27.6Stays distinct
Tritanopia#E6DAE3 · #D6E3DB15.3Stays distinct
Achromatopsia#DDDDDD · #E0E0E00.7Easily confused

Harmony

Color harmonies for #E9D5FF

Its complement is #D4E7BC, a pale muted green.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#E9D5FF
  • Complement#D4E7BC

Complementary

Open in Harmony Studio
  • −30°#D6DDFF
  • Base#E9D5FF
  • +30°#FAD0EE
  • Base#E9D5FF
  • +120°#FBD8B5
  • +240°#B2ECE5
  • Base#E9D5FF
  • +150°#EAE0B2
  • +210°#BFEBCF

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-purple-200: #e9d5ff;
}

Tailwind config

// tailwind.config.js — already built in as purple-200;
// pin the v3 value explicitly like this:
module.exports = {
  theme: {
    extend: {
      colors: {
        purple: { 200: '#e9d5ff' },
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  /* v4 has its own purple-200; this pins the v3 value. */
  --color-purple-200: oklch(0.902 0.060 306.7);
}

Design token (W3C DTCG)

{
  "color": {
    "purple-200": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.9137, 0.8353, 1],
        "hex": "#e9d5ff"
      },
      "$description": "Tailwind CSS v3 purple-200"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let purple200 = Color(.sRGB, red: 0.914, green: 0.835, blue: 1.000, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Purple200 = Color(0xFFE9D5FF)
}

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 #E9D5FF in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.