Tailwind CSS v4 default palette
Tailwind fuchsia-400: #ED6AFF
In Tailwind CSS v4, fuchsia-400 is defined as --color-fuchsia-400: oklch(74% 0.238 322.16), which is #ED6AFF in hex and rgb(237, 106, 255): a light, vivid purple. In Tailwind v3, fuchsia-400 was #E879F9.
In OKLCH, fuchsia-400 has a lightness of 74.0%, chroma 0.238 and hue 322.2°.
This OKLCH value lies outside sRGB. The hex #ED6AFF is the sRGB fallback from the CSS Color 4 gamut mapping algorithm; on Display P3 screens browsers show a more saturated color, close to color(display-p3 0.8668 0.4478 0.979).
In v3, fuchsia-400 was #E879F9. The v4 value is ΔE OK 3.2 away; v4 is darker and more saturated.
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-400
| Tailwind v4 token | --color-fuchsia-400 |
|---|---|
| OKLCH (source value) | oklch(74% 0.238 322.16) |
| HEX | #ED6AFF |
| RGB | rgb(237, 106, 255) |
| HSL | hsl(293, 100%, 71%) |
| HWB | hwb(293 42% 0%) |
| CMYK (naive, no ICC profile) | cmyk(7%, 58%, 0%, 0%) |
| Decimal | 15,559,423 |
| Display P3 | color(display-p3 0.8668 0.4478 0.979) |
| Tailwind v3 hex | #E879F9 |
| Utility classes | bg-fuchsia-400, text-fuchsia-400, border-fuchsia-400 |
Tailwind fuchsia scale
Contrast and accessibility
On fuchsia-400, black text has a contrast ratio of 8.10:1 and passes AAA at any text size; white text reaches 2.59: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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on fuchsia-400 | 8.10:1 | Pass | Pass | Pass | Pass | 54.1 |
| White text on fuchsia-400 | 2.59:1 | Fail | Fail | Fail | Fail | −55.0 |
| Fuchsia-400 text on white | 2.59:1 | Fail | Fail | Fail | Fail | 49.9 |
| Fuchsia-400 text on black | 8.10:1 | Pass | Pass | Pass | Pass | −52.0 |
Tints and shades
Each step mixes var(--color-fuchsia-400) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-fuchsia-400), white 25%) in CSS.
Tints (mixed with white)
- 5%
#ee71ff - 15%
#f080ff - 25%
#f28fff - 35%
#f39eff - 45%
#f5adff - 55%
#f7bcff - 65%
#f9cbff - 75%
#fbdaff - 85%
#fce9ff - 95%
#fef8ff
Shades (mixed with black)
- 5%
#e165f2 - 15%
#c95ad9 - 25%
#b250bf - 35%
#9a45a6 - 45%
#823a8c - 55%
#6b3073 - 65%
#532559 - 75%
#3b1b40 - 85%
#241026 - 95%
#0c050d
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, fuchsia-400's complementary color is #2BCD20 (close to limegreen), its analogous colors are #AF93FF and #FF64B8, and its triadic partners are #DF9D00 and #00C4D2. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #2bcd20 |
| Analogous | −30°, +30° | #af93ff#ff64b8 |
| Triadic | +120°, +240° | #df9d00#00c4d2 |
| Split-complementary | +150°, +210° | #afb400#00cb9f |
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-400 is a cool color: its hue is 293° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.
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 Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| purple-400 | #c27aff | 7.7 |
| fuchsia-500 | #e12afb | 9.3 |
| pink-400 | #fb64b6 | 11.3 |
Code snippets
<div class="bg-fuchsia-400 text-black">...</div>
<p class="text-fuchsia-400 border-fuchsia-400">...</p>.element {
color: var(--color-fuchsia-400);
background-color: oklch(74% 0.238 322.16);
border-color: #ed6aff;
outline-color: rgb(237 106 255);
}import SwiftUI
extension Color {
static let fuchsia400 = Color(red: 0.929, green: 0.416, blue: 1.000)
}import androidx.compose.ui.graphics.Color
val Fuchsia400 = Color(0xFFED6AFF)import 'package:flutter/material.dart';
const fuchsia400 = Color(0xFFED6AFF);<!-- res/values/colors.xml -->
<color name="fuchsia_400">#ED6AFF</color>Frequently asked questions
- What is the hex code for Tailwind fuchsia-400?
- In Tailwind CSS v4, fuchsia-400 is oklch(74% 0.238 322.16), which converts to #ED6AFF (rgb(237, 106, 255)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #E879F9.
- What is the difference between fuchsia-400 in Tailwind v3 and v4?
- v3 used the hex #E879F9; v4 redefined the palette in OKLCH as oklch(74% 0.238 322.16). In v3, fuchsia-400 was #E879F9. The v4 value is ΔE OK 3.2 away; v4 is darker and more saturated.
- How do I use fuchsia-400 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-fuchsia-400). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on fuchsia-400?
- White text on fuchsia-400 has a contrast ratio of 2.59:1, which fails AA even for large text under WCAG 2.2. Black text reaches 8.10:1 and passes both AA and AAA. In APCA terms that is Lc −55.0 for white and Lc 54.1 for black.
- Which CSS named color is closest to fuchsia-400?
- The closest is violet (#EE82EE) at ΔE OK 5.9, followed by orchid and fuchsia.
Last reviewed by Arielton Oberek.