Tailwind CSS v3 color

Tailwind violet-100 #EDE9FE

Tailwind CSS v3's violet-100 is #EDE9FE. It is a pale grayish violet in the neutral family. In OKLCH it sits at lightness 0.943, chroma 0.028 and hue 294.6°. The nearest CSS named color is lavender (#E6E6FA), ΔE2000 2.0 away.

Relative luminance
0.8344
OKLCH L · C · h
0.943 · 0.028 · 294.6
Best text
Black 17.68:1
Hue family
Neutral

#EDE9FE color codes

HEX
#EDE9FE
RGB
rgb(237, 233, 254)
HSL
hsl(251, 91%, 95%)
OKLCH
oklch(0.943 0.028 294.6)
OKLab
oklab(0.943 0.012 -0.026)
CIELAB (D65)
L* 93.21, a* 5.18, b* -9.64
XYZ (D65)
X 81.95, Y 83.44, Z 105.53
CMYK (naive)
cmyk(7%, 8%, 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 #EDE9FE accessible?

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

    17.68:1

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

    1.18:1

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

    Text is here, unreadable at 1.18:1

  • As text on black

    17.68:1

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

    1.18:1

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

    Text is here, unreadable at 1.18:1

Nearest versions that pass 4.5:1

  • For text on white

    #787486 4.52:1

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

  • For text on black

    #EDE9FE 17.68:1

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

Checking another pair? Use the Contrast Checker.

Studio

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

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

  1. 50#F5F3FF
    White
    1.09
    Black
    19.14
  2. 100This color#EDE9FE
    White
    1.18
    Black
    17.68
  3. 200#D8D5E7
    White
    1.43
    Black
    14.59
  4. 300#BEBBCE
    White
    1.87
    Black
    11.18
  5. 400#A29EB2
    White
    2.60
    Black
    8.06
  6. 500#878396
    White
    3.67
    Black
    5.71
  7. 600#6F6C7E
    White
    5.09
    Black
    4.12
  8. 700#595566
    White
    7.20
    Black
    2.91
  9. 800#403D4C
    White
    10.55
    Black
    1.98
  10. 900#292734
    White
    14.64
    Black
    1.43
  11. 950#17141F
    White
    18.16
    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. 100This color#EDE9FE
    White
    1.18
    Black
    17.68
  3. 200#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 #EDE9FE can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.030; #EDE9FE uses 95% of it. Display P3, which many recent phones and laptops show, reaches 0.033 there: 11% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.028
sRGB edge
0.030
Display P3 edge
0.033
Rec. 2020 edge
0.034
Dominant wavelength
446 nm
Excitation purity
7%
Chromaticity
x 0.3025, y 0.3080
  • This color#EDE9FE
  • Most vivid in sRGB#EDE9FF
  • Most vivid in Display P3oklch(0.943 0.033 294.6)

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

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

Mixing

Mixing #EDE9FE

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

Black #000000

  • sRGB50%#77757F
  • OKLab50%#5C5A63
  • OKLCH50%#5C5A63

Its complement #EBEFDA

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

In use

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

For text on this page, the nearest shade that passes is #787486 4.52:1

Dark page

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

Color vision

How #EDE9FE looks with color blindness

Achromatopsia changes it most, ΔE2000 9.7; deuteranopia changes it least, 4.9.

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

    #E5ECFF ΔE2000 5.2

    Noticeable

    Reads as pale grayish blue

  • Deuteranopia

    No working green (medium-wavelength) cones

    #E5EBFD ΔE2000 4.9

    Close match

    Reads as pale grayish blue

  • Tritanopia

    No working blue (short-wavelength) cones

    #EAECF0 ΔE2000 8.3

    Noticeable

    Reads as off-white

  • Achromatopsia

    No cone color vision; lightness only

    #EBEBEB ΔE2000 9.7

    Noticeable

    Reads as off-white

Pairing check

A near-neutral has no complementary hue to pair with, so tell it apart from neighboring grays by lightness contrast alone.

Harmony

Color harmonies for #EDE9FE

Its complement is #EBEFDA, a pale grayish yellow.

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

Open the Harmony Studio
  • Base#EDE9FE
  • Complement#EBEFDA

Complementary

Open in Harmony Studio
  • −30°#E3EDFF
  • Base#EDE9FE
  • +30°#F6E6F7
  • Base#EDE9FE
  • +120°#FCE8DB
  • +240°#DAF3EB
  • Base#EDE9FE
  • +150°#F5EBD7
  • +210°#E1F2E1

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-100: #ede9fe;
}

Tailwind config

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

Tailwind v4 theme

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

@theme {
  /* v4 has its own violet-100; this pins the v3 value. */
  --color-violet-100: oklch(0.943 0.028 294.6);
}

Design token (W3C DTCG)

{
  "color": {
    "violet-100": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.9294, 0.9137, 0.9961],
        "hex": "#ede9fe"
      },
      "$description": "Tailwind CSS v3 violet-100"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let violet100 = Color(.sRGB, red: 0.929, green: 0.914, blue: 0.996, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Violet100 = Color(0xFFEDE9FE)
}

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

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