Tailwind CSS v3 color

Tailwind violet-200 #DDD6FE

Tailwind CSS v3's violet-200 is #DDD6FE. It is a pale muted violet in the violet family. In OKLCH it sits at lightness 0.894, chroma 0.055 and hue 293.3°. The nearest CSS named color is lavender (#E6E6FA), ΔE2000 7.7 away.

Relative luminance
0.7062
OKLCH L · C · h
0.894 · 0.055 · 293.3
Best text
Black 15.12:1
Hue family
Violet

#DDD6FE color codes

HEX
#DDD6FE
RGB
rgb(221, 214, 254)
HSL
hsl(251, 95%, 92%)
OKLCH
oklch(0.894 0.055 293.3)
OKLab
oklab(0.894 0.022 -0.050)
CIELAB (D65)
L* 87.30, a* 10.01, b* -18.61
XYZ (D65)
X 71.75, Y 70.62, Z 103.60
CMYK (naive)
cmyk(13%, 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 #DDD6FE accessible?

Black text on it reaches 15.12:1, passing AAA. White text fails at 1.38: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.12:1

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

    1.38:1

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

    Text is here, unreadable at 1.38:1

  • As text on black

    15.12:1

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

    1.38:1

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

    Text is here, unreadable at 1.38:1

Nearest versions that pass 4.5:1

  • For text on white

    #787195 4.57:1

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

  • For text on black

    #DDD6FE 15.12:1

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

Checking another pair? Use the Contrast Checker.

Studio

Adjust #DDD6FE 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 #DDD6FE

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

  1. 50#F5F3FF
    White
    1.09
    Black
    19.14
  2. 100#ECE8FF
    White
    1.19
    Black
    17.55
  3. 200This color#DDD6FE
    White
    1.38
    Black
    15.12
  4. 300#BFB8DD
    White
    1.88
    Black
    11.11
  5. 400#A29CC1
    White
    2.60
    Black
    8.06
  6. 500#8780A5
    White
    3.70
    Black
    5.66
  7. 600#70698C
    White
    5.13
    Black
    4.08
  8. 700#595373
    White
    7.21
    Black
    2.90
  9. 800#413B58
    White
    10.54
    Black
    1.99
  10. 900#2A243E
    White
    14.78
    Black
    1.42
  11. 950#171227
    White
    18.22
    Black
    1.15

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

Tailwind CSS v3 violet scale

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

  1. 50#F5F3FF
    White
    1.09
    Black
    19.14
  2. 100#EDE9FE
    White
    1.18
    Black
    17.68
  3. 200This color#DDD6FE
    White
    1.38
    Black
    15.12
  4. 300#C4B5FD
    White
    1.84
    Black
    11.37
  5. 400#A78BFA
    White
    2.72
    Black
    7.71
  6. 500#8B5CF6
    White
    4.23
    Black
    4.95
  7. 600#7C3AED
    White
    5.69
    Black
    3.68
  8. 700#6D28D9
    White
    7.10
    Black
    2.95
  9. 800#5B21B6
    White
    8.98
    Black
    2.33
  10. 900#4C1D95
    White
    10.95
    Black
    1.91
  11. 950#2E1065
    White
    15.23
    Black
    1.37

Gamut

How vivid #DDD6FE can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.057; #DDD6FE uses 97% of it. Display P3, which many recent phones and laptops show, reaches 0.062 there: 10% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.055
sRGB edge
0.057
Display P3 edge
0.062
Rec. 2020 edge
0.064
Dominant wavelength
450 nm
Excitation purity
13%
Chromaticity
x 0.2917, y 0.2871
  • This color#DDD6FE
  • Most vivid in sRGB#DDD6FF
  • Most vivid in Display P3oklch(0.894 0.062 293.3)

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

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

Mixing

Mixing #DDD6FE

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

Black #000000

  • sRGB50%#6F6B7F
  • OKLab50%#555263
  • OKLCH50%#555263

Its complement #DCE1B7

  • sRGB50%#DDDCDB
  • OKLab50%#DCDCDC
  • OKLCH50%#FFCFCB
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #ddd6fe, white);
color: color-mix(in oklch, #ddd6fe 50%, white);

In use

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

For text on this page, the nearest shade that passes is #787195 4.57:1

Dark page

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

Color vision

How #DDD6FE looks with color blindness

Achromatopsia changes it most, ΔE2000 15.5; deuteranopia changes it least, 7.1.

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

    #CEDBFF ΔE2000 7.3

    Noticeable

    Reads as pale muted blue

  • Deuteranopia

    No working green (medium-wavelength) cones

    #CEDAFD ΔE2000 7.1

    Noticeable

    Reads as pale grayish blue

  • Tritanopia

    No working blue (short-wavelength) cones

    #D7DCE3 ΔE2000 13.4

    Distinct

    Reads as light gray

  • Achromatopsia

    No cone color vision; lightness only

    #DBDBDB ΔE2000 15.5

    Distinct

    Reads as light gray

Pairing check

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

VisionThe pairΔE2000Verdict
Normal vision#DDD6FE · #DCE1B735.5Stays distinct
Protanopia#CEDBFF · #E8DDB430.4Stays distinct
Deuteranopia#CEDAFD · #E7DEB929.1Stays distinct
Tritanopia#D7DCE3 · #E1DCD57.5Harder to tell apart
Achromatopsia#DBDBDB · #DDDDDD0.5Easily confused

Harmony

Color harmonies for #DDD6FE

Its complement is #DCE1B7, a pale muted yellow.

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

Open the Harmony Studio
  • Base#DDD6FE
  • Complement#DCE1B7

Complementary

Open in Harmony Studio
  • −30°#CBDDFF
  • Base#DDD6FE
  • +30°#EFD1F1
  • Base#DDD6FE
  • +120°#FAD3BB
  • +240°#B8E9D9
  • Base#DDD6FE
  • +150°#EEDAB4
  • +210°#C8E6C5

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-violet-200: #ddd6fe;
}

Tailwind config

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

Tailwind v4 theme

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

@theme {
  /* v4 has its own violet-200; this pins the v3 value. */
  --color-violet-200: oklch(0.894 0.055 293.3);
}

Design token (W3C DTCG)

{
  "color": {
    "violet-200": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.8667, 0.8392, 0.9961],
        "hex": "#ddd6fe"
      },
      "$description": "Tailwind CSS v3 violet-200"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let violet200 = Color(.sRGB, red: 0.867, green: 0.839, blue: 0.996, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Violet200 = Color(0xFFDDD6FE)
}

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

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