Skip to content

Tailwind CSS v4 default palette

Tailwind fuchsia-800: #8A0194

In Tailwind CSS v4, fuchsia-800 is defined as --color-fuchsia-800: oklch(45.2% 0.211 324.591), which is #8A0194 in hex and rgb(138, 1, 148): a medium-dark, vivid purple. In Tailwind v3, fuchsia-800 was #86198F.

fuchsia-800#8A0194

In OKLCH, fuchsia-800 has a lightness of 45.2%, chroma 0.211 and hue 324.6°.

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

In v3, fuchsia-800 was #86198F. The v4 value is ΔE OK 1.9 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-800

Color codes for fuchsia-800
Tailwind v4 token--color-fuchsia-800
OKLCH (source value)oklch(45.2% 0.211 324.591)
HEX#8A0194
RGBrgb(138, 1, 148)
HSLhsl(296, 99%, 29%)
HWBhwb(296 0% 42%)
CMYK (naive, no ICC profile)cmyk(7%, 99%, 0%, 42%)
Decimal9,044,372
Tailwind v3 hex#86198F
Utility classesbg-fuchsia-800, text-fuchsia-800, border-fuchsia-800

Tailwind fuchsia scale

Contrast and accessibility

On fuchsia-800, white text has a contrast ratio of 8.35:1 and passes AAA at any text size; black text reaches 2.51: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-8002.51:1FailFailFailFail17.4
White text on fuchsia-8008.35:1PassPassPassPass−91.4
Fuchsia-800 text on white8.35:1PassPassPassPass86.6
Fuchsia-800 text on black2.51:1FailFailFailFail−15.5

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #900e99
  2. 15%
    #9c27a4
  3. 25%
    #a741af
  4. 35%
    #b35ab9
  5. 45%
    #bf73c4
  6. 55%
    #ca8dcf
  7. 65%
    #d6a6da
  8. 75%
    #e2c0e4
  9. 85%
    #edd9ef
  10. 95%
    #f9f2fa

Shades (mixed with black)

  1. 5%
    #83018d
  2. 15%
    #75017e
  3. 25%
    #68016f
  4. 35%
    #5a0160
  5. 45%
    #4c0151
  6. 55%
    #3e0043
  7. 65%
    #300034
  8. 75%
    #230025
  9. 85%
    #150016
  10. 95%
    #070007

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, fuchsia-800's complementary color is #006C00 (close to darkgreen), its analogous colors are #6327BB and #A2005C, and its triadic partners are #724F00 and #00646F. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#006c00
Analogous−30°, +30°#6327bb#a2005c
Triadic+120°, +240°#724f00#00646f
Split-complementary+150°, +210°#555c00#006852

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-800 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
darkmagenta#8b008b1.6
purple#8000803.8
rebeccapurple#6633998.5

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
fuchsia-900#7213786.6
fuchsia-700#a800b77.8
purple-800#6e11b07.9

Code snippets

Tailwind CSS
<div class="bg-fuchsia-800 text-white">...</div>
<p class="text-fuchsia-800 border-fuchsia-800">...</p>
CSS
.element {
  color: var(--color-fuchsia-800);
  background-color: oklch(45.2% 0.211 324.591);
  border-color: #8a0194;
  outline-color: rgb(138 1 148);
}
SwiftUI
import SwiftUI

extension Color {
  static let fuchsia800 = Color(red: 0.541, green: 0.004, blue: 0.580)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const fuchsia800 = Color(0xFF8A0194);
Android XML
<!-- res/values/colors.xml -->
<color name="fuchsia_800">#8A0194</color>

Frequently asked questions

What is the hex code for Tailwind fuchsia-800?
In Tailwind CSS v4, fuchsia-800 is oklch(45.2% 0.211 324.591), which converts to #8A0194 (rgb(138, 1, 148)) in sRGB. In Tailwind v3 the same name was #86198F.
What is the difference between fuchsia-800 in Tailwind v3 and v4?
v3 used the hex #86198F; v4 redefined the palette in OKLCH as oklch(45.2% 0.211 324.591). In v3, fuchsia-800 was #86198F. The v4 value is ΔE OK 1.9 away, below the point where most people can tell them apart; v4 is more saturated.
How do I use fuchsia-800 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-fuchsia-800). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on fuchsia-800?
White text on fuchsia-800 has a contrast ratio of 8.35:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.51:1 and fails AA even for large text. In APCA terms that is Lc −91.4 for white and Lc 17.4 for black.
Which CSS named color is closest to fuchsia-800?
The closest is darkmagenta (#8B008B) at ΔE OK 1.6, followed by purple and rebeccapurple.

Last reviewed by Arielton Oberek.