Skip to content

Tailwind CSS v4 default palette

Tailwind purple-50: #FAF5FF

In Tailwind CSS v4, purple-50 is defined as --color-purple-50: oklch(97.7% 0.014 308.299), which is #FAF5FF in hex and rgb(250, 245, 255): an off-white with a violet tint. In Tailwind v3, purple-50 was #FAF5FF.

purple-50#FAF5FF

In OKLCH, purple-50 has a lightness of 97.7%, chroma 0.014 and hue 308.3°.

The value fits inside sRGB, so the hex #FAF5FF represents it without loss on any screen.

In v3, purple-50 was #FAF5FF. The v4 value is ΔE OK 0.0 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-50

Color codes for purple-50
Tailwind v4 token--color-purple-50
OKLCH (source value)oklch(97.7% 0.014 308.299)
HEX#FAF5FF
RGBrgb(250, 245, 255)
HSLhsl(270, 100%, 98%)
HWBhwb(270 96% 0%)
CMYK (naive, no ICC profile)cmyk(2%, 4%, 0%, 0%)
Decimal16,446,975
Tailwind v3 hex#FAF5FF
Utility classesbg-purple-50, text-purple-50, border-purple-50

Tailwind purple scale

Contrast and accessibility

On purple-50, black text has a contrast ratio of 19.56:1 and passes AAA at any text size; white text reaches 1.07: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-5019.56:1PassPassPassPass101.1
White text on purple-501.07:1FailFailFailFail0.0
Purple-50 text on white1.07:1FailFailFailFail0.0
Purple-50 text on black19.56:1PassPassPassPass−102.5

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #faf6ff
  2. 15%
    #fbf7ff
  3. 25%
    #fbf8ff
  4. 35%
    #fcf9ff
  5. 45%
    #fcfaff
  6. 55%
    #fdfbff
  7. 65%
    #fdfcff
  8. 75%
    #fefdff
  9. 85%
    #fefeff
  10. 95%
    #ffffff

Shades (mixed with black)

  1. 5%
    #eee9f2
  2. 15%
    #d5d0d9
  3. 25%
    #bcb8bf
  4. 35%
    #a39fa6
  5. 45%
    #8a878c
  6. 55%
    #706e73
  7. 65%
    #585659
  8. 75%
    #3f3d40
  9. 85%
    #262526
  10. 95%
    #0d0c0d

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, purple-50's complementary color is #F5F9F0 (close to floralwhite), its analogous colors are #F5F7FF and #FEF4FB, and its triadic partners are #FEF6EE and #EEFBF9. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#f5f9f0
Analogous−30°, +30°#f5f7ff#fef4fb
Triadic+120°, +240°#fef6ee#eefbf9
Split-complementary+150°, +210°#faf8ed#f0fbf4

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-50 is close to neutral: its OKLCH chroma is only 0.014, so its temperature comes from context. The faint 270° hue gives it a slightly cool cast.

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
ghostwhite#f8f8ff0.8
aliceblue#f0f8ff1.4
lavenderblush#fff0f51.6

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
fuchsia-50#fdf4ff0.4
violet-50#f5f3ff0.9
pink-50#fdf2f81.0

Code snippets

Tailwind CSS
<div class="bg-purple-50 text-black">...</div>
<p class="text-purple-50 border-purple-50">...</p>
CSS
.element {
  color: var(--color-purple-50);
  background-color: oklch(97.7% 0.014 308.299);
  border-color: #faf5ff;
  outline-color: rgb(250 245 255);
}
SwiftUI
import SwiftUI

extension Color {
  static let purple50 = Color(red: 0.980, green: 0.961, blue: 1.000)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const purple50 = Color(0xFFFAF5FF);
Android XML
<!-- res/values/colors.xml -->
<color name="purple_50">#FAF5FF</color>

Frequently asked questions

What is the hex code for Tailwind purple-50?
In Tailwind CSS v4, purple-50 is oklch(97.7% 0.014 308.299), which converts to #FAF5FF (rgb(250, 245, 255)) in sRGB. In Tailwind v3 the same name was #FAF5FF.
What is the difference between purple-50 in Tailwind v3 and v4?
v3 used the hex #FAF5FF; v4 redefined the palette in OKLCH as oklch(97.7% 0.014 308.299). In v3, purple-50 was #FAF5FF. The v4 value is ΔE OK 0.0 away, below the point where most people can tell them apart.
How do I use purple-50 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-purple-50). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on purple-50?
White text on purple-50 has a contrast ratio of 1.07:1, which fails AA even for large text under WCAG 2.2. Black text reaches 19.56:1 and passes both AA and AAA. In APCA terms that is Lc 0.0 for white and Lc 101.1 for black.
Which CSS named color is closest to purple-50?
The closest is ghostwhite (#F8F8FF) at ΔE OK 0.8, followed by aliceblue and lavenderblush.

Last reviewed by Arielton Oberek.