Skip to content

Tailwind CSS v4 default palette

Tailwind fuchsia-950: #4B004F

In Tailwind CSS v4, fuchsia-950 is defined as --color-fuchsia-950: oklch(29.3% 0.136 325.661), which is #4B004F in hex and rgb(75, 0, 79): a very dark, moderately saturated purple. In Tailwind v3, fuchsia-950 was #4A044E.

fuchsia-950#4B004F

In OKLCH, fuchsia-950 has a lightness of 29.3%, chroma 0.136 and hue 325.7°.

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

In v3, fuchsia-950 was #4A044E. The v4 value is ΔE OK 0.5 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-950

Color codes for fuchsia-950
Tailwind v4 token--color-fuchsia-950
OKLCH (source value)oklch(29.3% 0.136 325.661)
HEX#4B004F
RGBrgb(75, 0, 79)
HSLhsl(297, 100%, 15%)
HWBhwb(297 0% 69%)
CMYK (naive, no ICC profile)cmyk(5%, 100%, 0%, 69%)
Decimal4,915,279
Tailwind v3 hex#4A044E
Utility classesbg-fuchsia-950, text-fuchsia-950, border-fuchsia-950

Tailwind fuchsia scale

Contrast and accessibility

On fuchsia-950, white text has a contrast ratio of 14.87:1 and passes AAA at any text size; black text reaches 1.41: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-9501.41:1FailFailFailFail0.0
White text on fuchsia-95014.87:1PassPassPassPass−103.4
Fuchsia-950 text on white14.87:1PassPassPassPass100.4
Fuchsia-950 text on black1.41:1FailFailFailFail0.0

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #540d58
  2. 15%
    #662669
  3. 25%
    #78407b
  4. 35%
    #8a598d
  5. 45%
    #9c739e
  6. 55%
    #ae8cb0
  7. 65%
    #c0a6c1
  8. 75%
    #d2bfd3
  9. 85%
    #e4d9e5
  10. 95%
    #f6f2f6

Shades (mixed with black)

  1. 5%
    #47004b
  2. 15%
    #400043
  3. 25%
    #38003b
  4. 35%
    #310033
  5. 45%
    #29002b
  6. 55%
    #220024
  7. 65%
    #1a001c
  8. 75%
    #130014
  9. 85%
    #0b000c
  10. 95%
    #040004

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, fuchsia-950's complementary color is #003A00 (close to darkslategray), its analogous colors are #351166 and #59002F, and its triadic partners are #3D2800 and #00353D. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#003a00
Analogous−30°, +30°#351166#59002f
Triadic+120°, +240°#3d2800#00353d
Split-complementary+150°, +210°#2b3000#00382a

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-950 is a cool color: its hue is 297° 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
indigo#4b00829.1
midnightblue#19197012.5
purple#80008014.0

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
purple-950#3c03665.8
violet-950#2f0d688.3
pink-950#5104248.5

Code snippets

Tailwind CSS
<div class="bg-fuchsia-950 text-white">...</div>
<p class="text-fuchsia-950 border-fuchsia-950">...</p>
CSS
.element {
  color: var(--color-fuchsia-950);
  background-color: oklch(29.3% 0.136 325.661);
  border-color: #4b004f;
  outline-color: rgb(75 0 79);
}
SwiftUI
import SwiftUI

extension Color {
  static let fuchsia950 = Color(red: 0.294, green: 0.000, blue: 0.310)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const fuchsia950 = Color(0xFF4B004F);
Android XML
<!-- res/values/colors.xml -->
<color name="fuchsia_950">#4B004F</color>

Frequently asked questions

What is the hex code for Tailwind fuchsia-950?
In Tailwind CSS v4, fuchsia-950 is oklch(29.3% 0.136 325.661), which converts to #4B004F (rgb(75, 0, 79)) in sRGB. In Tailwind v3 the same name was #4A044E.
What is the difference between fuchsia-950 in Tailwind v3 and v4?
v3 used the hex #4A044E; v4 redefined the palette in OKLCH as oklch(29.3% 0.136 325.661). In v3, fuchsia-950 was #4A044E. The v4 value is ΔE OK 0.5 away, below the point where most people can tell them apart; v4 is more saturated.
How do I use fuchsia-950 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-fuchsia-950). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on fuchsia-950?
White text on fuchsia-950 has a contrast ratio of 14.87:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 1.41:1 and fails AA even for large text. In APCA terms that is Lc −103.4 for white and Lc 0.0 for black.
Which CSS named color is closest to fuchsia-950?
The closest is indigo (#4B0082) at ΔE OK 9.1, followed by midnightblue and purple.

Last reviewed by Arielton Oberek.