Skip to content

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.

fuchsia-500#E12AFB

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

Color codes for fuchsia-500
Tailwind v4 token--color-fuchsia-500
OKLCH (source value)oklch(66.7% 0.295 322.15)
HEX#E12AFB
RGBrgb(225, 42, 251)
HSLhsl(293, 96%, 57%)
HWBhwb(293 16% 2%)
CMYK (naive, no ICC profile)cmyk(10%, 83%, 0%, 2%)
Decimal14,756,603
Tailwind v3 hex#D946EF
Utility classesbg-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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on fuchsia-5005.92:1PassPassFailPass42.9
White text on fuchsia-5003.54:1FailPassFailFail−66.7
Fuchsia-500 text on white3.54:1FailPassFailFail61.2
Fuchsia-500 text on black5.92:1PassPassFailPass−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)

  1. 5%
    #e335fb
  2. 15%
    #e64afc
  3. 25%
    #e95ffc
  4. 35%
    #ec75fc
  5. 45%
    #ef8afd
  6. 55%
    #f29ffd
  7. 65%
    #f5b4fe
  8. 75%
    #f8cafe
  9. 85%
    #fbdffe
  10. 95%
    #fef4ff

Shades (mixed with black)

  1. 5%
    #d628ee
  2. 15%
    #bf24d5
  3. 25%
    #a920bc
  4. 35%
    #921ba3
  5. 45%
    #7c178a
  6. 55%
    #651371
  7. 65%
    #4f0f58
  8. 75%
    #380b3f
  9. 85%
    #220626
  10. 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.

Color harmonies
HarmonyRotationColor
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

Nearest CSS named colors
ColorHEXΔE OK
fuchsia#ff00ff5.5
mediumorchid#ba55d310.2
orchid#da70d612.2

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
fuchsia-600#c800de7.6
fuchsia-400#ed6aff9.3
purple-500#ad46ff10.2

Code snippets

Tailwind CSS
<div class="bg-fuchsia-500 text-black">...</div>
<p class="text-fuchsia-500 border-fuchsia-500">...</p>
CSS
.element {
  color: var(--color-fuchsia-500);
  background-color: oklch(66.7% 0.295 322.15);
  border-color: #e12afb;
  outline-color: rgb(225 42 251);
}
SwiftUI
import SwiftUI

extension Color {
  static let fuchsia500 = Color(red: 0.882, green: 0.165, blue: 0.984)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const fuchsia500 = Color(0xFFE12AFB);
Android XML
<!-- 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.