Tailwind CSS v4 default palette
Tailwind fuchsia-300: #F4A8FF
In Tailwind CSS v4, fuchsia-300 is defined as --color-fuchsia-300: oklch(83.3% 0.145 321.434), which is #F4A8FF in hex and rgb(244, 168, 255): a very light, moderately saturated purple. In Tailwind v3, fuchsia-300 was #F0ABFC.
In OKLCH, fuchsia-300 has a lightness of 83.3%, chroma 0.145 and hue 321.4°.
This OKLCH value lies outside sRGB. The hex #F4A8FF 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.9114 0.6701 0.9862).
In v3, fuchsia-300 was #F0ABFC. The v4 value is ΔE OK 1.3 away, below the point where most people can tell them apart; 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-300
| Tailwind v4 token | --color-fuchsia-300 |
|---|---|
| OKLCH (source value) | oklch(83.3% 0.145 321.434) |
| HEX | #F4A8FF |
| RGB | rgb(244, 168, 255) |
| HSL | hsl(292, 100%, 83%) |
| HWB | hwb(292 66% 0%) |
| CMYK (naive, no ICC profile) | cmyk(4%, 34%, 0%, 0%) |
| Decimal | 16,034,047 |
| Display P3 | color(display-p3 0.9114 0.6701 0.9862) |
| Tailwind v3 hex | #F0ABFC |
| Utility classes | bg-fuchsia-300, text-fuchsia-300, border-fuchsia-300 |
Tailwind fuchsia scale
Contrast and accessibility
On fuchsia-300, black text has a contrast ratio of 11.89:1 and passes AAA at any text size; white text reaches 1.76: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-300 | 11.89:1 | Pass | Pass | Pass | Pass | 71.6 |
| White text on fuchsia-300 | 1.76:1 | Fail | Fail | Fail | Fail | −36.2 |
| Fuchsia-300 text on white | 1.76:1 | Fail | Fail | Fail | Fail | 32.2 |
| Fuchsia-300 text on black | 11.89:1 | Pass | Pass | Pass | Pass | −70.4 |
Tints and shades
Each step mixes var(--color-fuchsia-300) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-fuchsia-300), white 25%) in CSS.
Tints (mixed with white)
- 5%
#f5acff - 15%
#f6b5ff - 25%
#f7beff - 35%
#f8c6ff - 45%
#f9cfff - 55%
#fad8ff - 65%
#fbe1ff - 75%
#fce9ff - 85%
#fdf2ff - 95%
#fefbff
Shades (mixed with black)
- 5%
#e8a0f2 - 15%
#cf8fd9 - 25%
#b77ebf - 35%
#9f6da6 - 45%
#865c8c - 55%
#6e4c73 - 65%
#553b59 - 75%
#3d2a40 - 85%
#251926 - 95%
#0c080d
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, fuchsia-300's complementary color is #90E086 (close to lightgreen), its analogous colors are #C9BBFF and #FFA2D2, and its triadic partners are #F8BE49 and #00E3EF. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #90e086 |
| Analogous | −30°, +30° | #c9bbff#ffa2d2 |
| Triadic | +120°, +240° | #f8be49#00e3ef |
| Split-complementary | +150°, +210° | #ccd156#45e6bc |
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-300 is a cool color: its hue is 292° 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-300 | #dab2ff | 4.4 |
| pink-300 | #fda5d5 | 6.2 |
| violet-300 | #c4b4ff | 7.3 |
Code snippets
<div class="bg-fuchsia-300 text-black">...</div>
<p class="text-fuchsia-300 border-fuchsia-300">...</p>.element {
color: var(--color-fuchsia-300);
background-color: oklch(83.3% 0.145 321.434);
border-color: #f4a8ff;
outline-color: rgb(244 168 255);
}import SwiftUI
extension Color {
static let fuchsia300 = Color(red: 0.957, green: 0.659, blue: 1.000)
}import androidx.compose.ui.graphics.Color
val Fuchsia300 = Color(0xFFF4A8FF)import 'package:flutter/material.dart';
const fuchsia300 = Color(0xFFF4A8FF);<!-- res/values/colors.xml -->
<color name="fuchsia_300">#F4A8FF</color>Frequently asked questions
- What is the hex code for Tailwind fuchsia-300?
- In Tailwind CSS v4, fuchsia-300 is oklch(83.3% 0.145 321.434), which converts to #F4A8FF (rgb(244, 168, 255)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #F0ABFC.
- What is the difference between fuchsia-300 in Tailwind v3 and v4?
- v3 used the hex #F0ABFC; v4 redefined the palette in OKLCH as oklch(83.3% 0.145 321.434). In v3, fuchsia-300 was #F0ABFC. The v4 value is ΔE OK 1.3 away, below the point where most people can tell them apart; v4 is more saturated.
- How do I use fuchsia-300 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-fuchsia-300). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on fuchsia-300?
- White text on fuchsia-300 has a contrast ratio of 1.76:1, which fails AA even for large text under WCAG 2.2. Black text reaches 11.89:1 and passes both AA and AAA. In APCA terms that is Lc −36.2 for white and Lc 71.6 for black.
- Which CSS named color is closest to fuchsia-300?
- The closest is plum (#DDA0DD) at ΔE OK 6.3, followed by violet and thistle.
Last reviewed by Arielton Oberek.