Skip to content

Tailwind CSS v4 default palette

Tailwind fuchsia-900: #721378

In Tailwind CSS v4, fuchsia-900 is defined as --color-fuchsia-900: oklch(40.1% 0.17 325.612), which is #721378 in hex and rgb(114, 19, 120): a dark, vivid purple. In Tailwind v3, fuchsia-900 was #701A75.

fuchsia-900#721378

In OKLCH, fuchsia-900 has a lightness of 40.1%, chroma 0.170 and hue 325.6°.

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

In v3, fuchsia-900 was #701A75. The v4 value is ΔE OK 1.0 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-900

Color codes for fuchsia-900
Tailwind v4 token--color-fuchsia-900
OKLCH (source value)oklch(40.1% 0.17 325.612)
HEX#721378
RGBrgb(114, 19, 120)
HSLhsl(296, 73%, 27%)
HWBhwb(296 7% 53%)
CMYK (naive, no ICC profile)cmyk(5%, 84%, 0%, 53%)
Decimal7,476,088
Tailwind v3 hex#701A75
Utility classesbg-fuchsia-900, text-fuchsia-900, border-fuchsia-900

Tailwind fuchsia scale

Contrast and accessibility

On fuchsia-900, white text has a contrast ratio of 10.09:1 and passes AAA at any text size; black text reaches 2.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-9002.07:1FailFailFailFail11.9
White text on fuchsia-90010.09:1PassPassPassPass−96.3
Fuchsia-900 text on white10.09:1PassPassPassPass92.1
Fuchsia-900 text on black2.07:1FailFailFailFail−10.3

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #791f7f
  2. 15%
    #87368c
  3. 25%
    #954e9a
  4. 35%
    #a366a7
  5. 45%
    #b17db5
  6. 55%
    #c095c2
  7. 65%
    #ceacd0
  8. 75%
    #dcc4dd
  9. 85%
    #eadceb
  10. 95%
    #f8f3f8

Shades (mixed with black)

  1. 5%
    #6c1272
  2. 15%
    #611066
  3. 25%
    #560e5a
  4. 35%
    #4a0c4e
  5. 45%
    #3f0a42
  6. 55%
    #330936
  7. 65%
    #28072a
  8. 75%
    #1d051e
  9. 85%
    #110312
  10. 95%
    #060106

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, fuchsia-900's complementary color is #005B00 (close to darkgreen), its analogous colors are #532797 and #86004B, and its triadic partners are #604200 and #00555F. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#005b00
Analogous−30°, +30°#532797#86004b
Triadic+120°, +240°#604200#00555f
Split-complementary+150°, +210°#464e00#005846

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-900 is a cool color: its hue is 296° 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
purple#8000803.2
darkmagenta#8b008b5.9
rebeccapurple#6633997.5

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
purple-900#59168b6.5
fuchsia-800#8a01946.6
purple-800#6e11b09.5

Code snippets

Tailwind CSS
<div class="bg-fuchsia-900 text-white">...</div>
<p class="text-fuchsia-900 border-fuchsia-900">...</p>
CSS
.element {
  color: var(--color-fuchsia-900);
  background-color: oklch(40.1% 0.17 325.612);
  border-color: #721378;
  outline-color: rgb(114 19 120);
}
SwiftUI
import SwiftUI

extension Color {
  static let fuchsia900 = Color(red: 0.447, green: 0.075, blue: 0.471)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const fuchsia900 = Color(0xFF721378);
Android XML
<!-- res/values/colors.xml -->
<color name="fuchsia_900">#721378</color>

Frequently asked questions

What is the hex code for Tailwind fuchsia-900?
In Tailwind CSS v4, fuchsia-900 is oklch(40.1% 0.17 325.612), which converts to #721378 (rgb(114, 19, 120)) in sRGB. In Tailwind v3 the same name was #701A75.
What is the difference between fuchsia-900 in Tailwind v3 and v4?
v3 used the hex #701A75; v4 redefined the palette in OKLCH as oklch(40.1% 0.17 325.612). In v3, fuchsia-900 was #701A75. The v4 value is ΔE OK 1.0 away, below the point where most people can tell them apart; v4 is more saturated.
How do I use fuchsia-900 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-fuchsia-900). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on fuchsia-900?
White text on fuchsia-900 has a contrast ratio of 10.09:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.07:1 and fails AA even for large text. In APCA terms that is Lc −96.3 for white and Lc 11.9 for black.
Which CSS named color is closest to fuchsia-900?
The closest is purple (#800080) at ΔE OK 3.2, followed by darkmagenta and rebeccapurple.

Last reviewed by Arielton Oberek.