Skip to content

Tailwind CSS v4 default palette

Tailwind fuchsia-50: #FDF4FF

In Tailwind CSS v4, fuchsia-50 is defined as --color-fuchsia-50: oklch(97.7% 0.017 320.058), which is #FDF4FF in hex and rgb(253, 244, 255): an off-white with a purple tint. In Tailwind v3, fuchsia-50 was #FDF4FF.

fuchsia-50#FDF4FF

In OKLCH, fuchsia-50 has a lightness of 97.7%, chroma 0.017 and hue 320.1°.

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

In v3, fuchsia-50 was #FDF4FF. The v4 value is ΔE OK 0.0 away, below the point where most people can tell them apart.

Tailwind fuchsia is a vivid magenta; several of its mid shades lie well outside sRGB and need gamut mapping on standard screens.

Color codes for fuchsia-50

Color codes for fuchsia-50
Tailwind v4 token--color-fuchsia-50
OKLCH (source value)oklch(97.7% 0.017 320.058)
HEX#FDF4FF
RGBrgb(253, 244, 255)
HSLhsl(289, 100%, 98%)
HWBhwb(289 96% 0%)
CMYK (naive, no ICC profile)cmyk(1%, 4%, 0%, 0%)
Decimal16,643,327
Tailwind v3 hex#FDF4FF
Utility classesbg-fuchsia-50, text-fuchsia-50, border-fuchsia-50

Tailwind fuchsia scale

Contrast and accessibility

On fuchsia-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 fuchsia-5019.56:1PassPassPassPass101.1
White text on fuchsia-501.07:1FailFailFailFail0.0
Fuchsia-50 text on white1.07:1FailFailFailFail0.0
Fuchsia-50 text on black19.56:1PassPassPassPass−102.4

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #fdf5ff
  2. 15%
    #fdf6ff
  3. 25%
    #fef7ff
  4. 35%
    #fef8ff
  5. 45%
    #fef9ff
  6. 55%
    #fefaff
  7. 65%
    #fefbff
  8. 75%
    #fffcff
  9. 85%
    #fffdff
  10. 95%
    #fffeff

Shades (mixed with black)

  1. 5%
    #f0e8f2
  2. 15%
    #d7cfd9
  3. 25%
    #beb7bf
  4. 35%
    #a49fa6
  5. 45%
    #8b868c
  6. 55%
    #726e73
  7. 65%
    #595559
  8. 75%
    #3f3d40
  9. 85%
    #262526
  10. 95%
    #0d0c0d

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, fuchsia-50's complementary color is #F2FAF0 (close to honeydew), its analogous colors are #F7F6FF and #FFF3F9, and its triadic partners are #FEF6EB and #EBFBFC. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#f2faf0
Analogous−30°, +30°#f7f6ff#fff3f9
Triadic+120°, +240°#fef6eb#ebfbfc
Split-complementary+150°, +210°#f8f9ec#edfbf6

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 fuchsia-50 is close to neutral: its OKLCH chroma is only 0.017, so its temperature comes from context. The faint 289° 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#f8f8ff1.1
lavenderblush#fff0f51.4
whitesmoke#f5f5f51.8

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
purple-50#faf5ff0.4
pink-50#fdf2f80.9
violet-50#f5f3ff1.1

Code snippets

Tailwind CSS
<div class="bg-fuchsia-50 text-black">...</div>
<p class="text-fuchsia-50 border-fuchsia-50">...</p>
CSS
.element {
  color: var(--color-fuchsia-50);
  background-color: oklch(97.7% 0.017 320.058);
  border-color: #fdf4ff;
  outline-color: rgb(253 244 255);
}
SwiftUI
import SwiftUI

extension Color {
  static let fuchsia50 = Color(red: 0.992, green: 0.957, blue: 1.000)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const fuchsia50 = Color(0xFFFDF4FF);
Android XML
<!-- res/values/colors.xml -->
<color name="fuchsia_50">#FDF4FF</color>

Frequently asked questions

What is the hex code for Tailwind fuchsia-50?
In Tailwind CSS v4, fuchsia-50 is oklch(97.7% 0.017 320.058), which converts to #FDF4FF (rgb(253, 244, 255)) in sRGB. In Tailwind v3 the same name was #FDF4FF.
What is the difference between fuchsia-50 in Tailwind v3 and v4?
v3 used the hex #FDF4FF; v4 redefined the palette in OKLCH as oklch(97.7% 0.017 320.058). In v3, fuchsia-50 was #FDF4FF. The v4 value is ΔE OK 0.0 away, below the point where most people can tell them apart.
How do I use fuchsia-50 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-fuchsia-50). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on fuchsia-50?
White text on fuchsia-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 fuchsia-50?
The closest is ghostwhite (#F8F8FF) at ΔE OK 1.1, followed by lavenderblush and whitesmoke.

Last reviewed by Arielton Oberek.