Tailwind CSS v4 default palette
Tailwind fuchsia-500: #E12AFB
In Tailwind CSS v4, fuchsia-500 is defined as --color-fuchsia-500: oklch(66.7% 0.295 322.15), which is #E12AFB in hex and rgb(225, 42, 251): a medium, vivid purple. In Tailwind v3, fuchsia-500 was #D946EF.
In OKLCH, fuchsia-500 has a lightness of 66.7%, chroma 0.295 and hue 322.1°. It is the most saturated shade of the fuchsia scale.
The value fits inside sRGB, so the hex #E12AFB represents it without loss on any screen.
In v3, fuchsia-500 was #D946EF. The v4 value is ΔE OK 3.6 away; v4 is 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-500
| Tailwind v4 token | --color-fuchsia-500 |
|---|---|
| OKLCH (source value) | oklch(66.7% 0.295 322.15) |
| HEX | #E12AFB |
| RGB | rgb(225, 42, 251) |
| HSL | hsl(293, 96%, 57%) |
| HWB | hwb(293 16% 2%) |
| CMYK (naive, no ICC profile) | cmyk(10%, 83%, 0%, 2%) |
| Decimal | 14,756,603 |
| Tailwind v3 hex | #D946EF |
| Utility classes | bg-fuchsia-500, text-fuchsia-500, border-fuchsia-500 |
Tailwind fuchsia scale
Contrast and accessibility
On fuchsia-500, black text has a contrast ratio of 5.92:1 and passes AA for normal text; white text reaches 3.54: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-500 | 5.92:1 | Pass | Pass | Fail | Pass | 42.9 |
| White text on fuchsia-500 | 3.54:1 | Fail | Pass | Fail | Fail | −66.7 |
| Fuchsia-500 text on white | 3.54:1 | Fail | Pass | Fail | Fail | 61.2 |
| Fuchsia-500 text on black | 5.92:1 | Pass | Pass | Fail | Pass | −40.5 |
Tints and shades
Each step mixes var(--color-fuchsia-500) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-fuchsia-500), white 25%) in CSS.
Tints (mixed with white)
- 5%
#e335fb - 15%
#e64afc - 25%
#e95ffc - 35%
#ec75fc - 45%
#ef8afd - 55%
#f29ffd - 65%
#f5b4fe - 75%
#f8cafe - 85%
#fbdffe - 95%
#fef4ff
Shades (mixed with black)
- 5%
#d628ee - 15%
#bf24d5 - 25%
#a920bc - 35%
#921ba3 - 45%
#7c178a - 55%
#651371 - 65%
#4f0f58 - 75%
#380b3f - 85%
#220626 - 95%
#0b020d
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, fuchsia-500's complementary color is #00B600 (close to limegreen), its analogous colors are #9C71FF and #FF00A6, and its triadic partners are #C38800 and #00ABB7. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #00b600 |
| Analogous | −30°, +30° | #9c71ff#ff00a6 |
| Triadic | +120°, +240° | #c38800#00abb7 |
| Split-complementary | +150°, +210° | #989d00#00b18a |
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-500 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
| Color | HEX | ΔE OK |
|---|---|---|
| fuchsia | #ff00ff | 5.5 |
| mediumorchid | #ba55d3 | 10.2 |
| orchid | #da70d6 | 12.2 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| fuchsia-600 | #c800de | 7.6 |
| fuchsia-400 | #ed6aff | 9.3 |
| purple-500 | #ad46ff | 10.2 |
Code snippets
<div class="bg-fuchsia-500 text-black">...</div>
<p class="text-fuchsia-500 border-fuchsia-500">...</p>.element {
color: var(--color-fuchsia-500);
background-color: oklch(66.7% 0.295 322.15);
border-color: #e12afb;
outline-color: rgb(225 42 251);
}import SwiftUI
extension Color {
static let fuchsia500 = Color(red: 0.882, green: 0.165, blue: 0.984)
}import androidx.compose.ui.graphics.Color
val Fuchsia500 = Color(0xFFE12AFB)import 'package:flutter/material.dart';
const fuchsia500 = Color(0xFFE12AFB);<!-- res/values/colors.xml -->
<color name="fuchsia_500">#E12AFB</color>Frequently asked questions
- What is the hex code for Tailwind fuchsia-500?
- In Tailwind CSS v4, fuchsia-500 is oklch(66.7% 0.295 322.15), which converts to #E12AFB (rgb(225, 42, 251)) in sRGB. In Tailwind v3 the same name was #D946EF.
- What is the difference between fuchsia-500 in Tailwind v3 and v4?
- v3 used the hex #D946EF; v4 redefined the palette in OKLCH as oklch(66.7% 0.295 322.15). In v3, fuchsia-500 was #D946EF. The v4 value is ΔE OK 3.6 away; v4 is more saturated.
- How do I use fuchsia-500 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-fuchsia-500). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on fuchsia-500?
- White text on fuchsia-500 has a contrast ratio of 3.54:1, which passes AA only for large text (24 px, or 18.66 px bold, and up) under WCAG 2.2. Black text reaches 5.92:1 and passes AA for normal text but not AAA. In APCA terms that is Lc −66.7 for white and Lc 42.9 for black.
- Which CSS named color is closest to fuchsia-500?
- The closest is fuchsia (#FF00FF) at ΔE OK 5.5, followed by mediumorchid and orchid.
Last reviewed by Arielton Oberek.