Tailwind CSS v3 color

Tailwind fuchsia-300 #F0ABFC

Tailwind CSS v3's fuchsia-300 is #F0ABFC. It is a pale soft magenta in the violet family. In OKLCH it sits at lightness 0.833, chroma 0.132 and hue 321.4°. The nearest CSS named color is plum (#DDA0DD), ΔE2000 5.4 away.

Relative luminance
0.5468
OKLCH L · C · h
0.833 · 0.132 · 321.4
Best text
Black 11.93:1
Hue family
Violet

#F0ABFC color codes

HEX
#F0ABFC
RGB
rgb(240, 171, 252)
HSL
hsl(291, 93%, 83%)
OKLCH
oklch(0.833 0.132 321.4)
OKLab
oklab(0.833 0.103 -0.082)
CIELAB (D65)
L* 78.86, a* 38.47, b* -30.24
XYZ (D65)
X 68.07, Y 54.68, Z 99.05
CMYK (naive)
cmyk(5%, 32%, 0%, 1%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

Legibility

Contrast: is #F0ABFC accessible?

Black text on it reaches 11.93:1, passing AAA. White text fails at 1.75:1.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    11.93:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +71
  • White text on it

    1.75:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc −36
  • As text on black

    11.93:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −70
  • As text on white

    1.75:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc +32

Nearest versions that pass 4.5:1

  • For text on white

    #9E5EAA 4.53:1

    Darkening its OKLCH lightness from 0.83 to 0.58 reaches 4.53:1 on white, keeping the hue.

  • For text on black

    #F0ABFC 11.93:1

    It already reaches 11.93:1 on black, so no change is needed.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #F0ABFC live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #F0ABFC

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #F0ABFC sits at step 300.

  1. 50#FDF0FF
    White
    1.10
    Black
    19.08
  2. 100#FBE1FF
    White
    1.21
    Black
    17.31
  3. 200#F6C2FF
    White
    1.49
    Black
    14.07
  4. 300This color#F0ABFC
    White
    1.75
    Black
    11.93
  5. 400#C785D2
    White
    2.72
    Black
    7.71
  6. 500#AA69B6
    White
    3.88
    Black
    5.40
  7. 600#91529C
    White
    5.39
    Black
    3.89
  8. 700#783C82
    White
    7.58
    Black
    2.76
  9. 800#5C2465
    White
    11.07
    Black
    1.89
  10. 900#400D49
    White
    15.30
    Black
    1.37
  11. 950#28002F
    White
    18.56
    Black
    1.13

Under each step, white and black text on it; a bold figure passes 4.5:1.

Tailwind CSS v3 fuchsia scale

The real Tailwind palette, for comparison with the computed ramp above.

  1. 50#FDF4FF
    White
    1.07
    Black
    19.56
  2. 100#FAE8FF
    White
    1.16
    Black
    18.05
  3. 200#F5D0FE
    White
    1.36
    Black
    15.33
  4. 300This color#F0ABFC
    White
    1.75
    Black
    11.93
  5. 400#E879F9
    White
    2.46
    Black
    8.53
  6. 500#D946EF
    White
    3.45
    Black
    6.07
  7. 600#C026D3
    White
    4.70
    Black
    4.45
  8. 700#A21CAF
    White
    6.32
    Black
    3.32
  9. 800#86198F
    White
    8.23
    Black
    2.54
  10. 900#701A75
    White
    10.03
    Black
    2.09
  11. 950#4A044E
    White
    14.80
    Black
    1.41

Gamut

How vivid #F0ABFC can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.140; #F0ABFC uses 94% of it. Display P3, which many recent phones and laptops show, reaches 0.155 there: 11% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.132
sRGB edge
0.140
Display P3 edge
0.155
Rec. 2020 edge
0.159
Dominant wavelength
Complementary 555 nm
Excitation purity
30%
Chromaticity
x 0.3069, y 0.2465
  • This color#F0ABFC
  • Most vivid in sRGB#F2A9FF
  • Most vivid in Display P3oklch(0.833 0.155 321.4)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #f0abfc;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.9199 0.6603 1); }
}

Mixing

Mixing #F0ABFC

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#F8D5FE
  • OKLab50%#F9D6FE
  • OKLCH50%#F9D6FE

Black #000000

  • sRGB50%#78567E
  • OKLab50%#5D4062
  • OKLCH50%#5D4062

Its complement #96DE8C

  • sRGB50%#C3C5C4
  • OKLab50%#C8C8C8
  • OKLCH50%#7FD4FF
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #f0abfc, white);
color: color-mix(in oklch, #f0abfc 50%, white);

In use

#F0ABFC in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:111.93:1 Passes
  • Link and body-size textText, 4.5:11.75:1 Fails
  • Large headingLarge text, 3:11.75:1 Fails
  • Icons, borders and focus ringsNon-text, 3:11.75:1 Fails

For text on this page, the nearest shade that passes is #9E5EAA 4.53:1

Dark page

  • Button labelText, 4.5:111.93:1 Passes
  • Link and body-size textText, 4.5:110.64:1 Passes
  • Large headingLarge text, 3:110.64:1 Passes
  • Icons, borders and focus ringsNon-text, 3:110.64:1 Passes

Color vision

How #F0ABFC looks with color blindness

Achromatopsia changes it most, ΔE2000 24.4; tritanopia changes it least, 14.5.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #A2BEFF ΔE2000 22.2

    Distinct

    Reads as light muted blue

  • Deuteranopia

    No working green (medium-wavelength) cones

    #B3C6F9 ΔE2000 19.7

    Distinct

    Reads as pale muted blue

  • Tritanopia

    No working blue (short-wavelength) cones

    #F2B4C9 ΔE2000 14.5

    Distinct

    Reads as pale muted pink

  • Achromatopsia

    No cone color vision; lightness only

    #C3C3C3 ΔE2000 24.4

    Distinct

    Reads as light gray

Pairing check

Checked against its complement, #96DE8C. Their lightness contrast is only 1.09:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#F0ABFC · #96DE8C67.0Stays distinct
Protanopia#A2BEFF · #E2D18645.4Stays distinct
Deuteranopia#B3C6F9 · #D7CA9138.6Stays distinct
Tritanopia#F2B4C9 · #90D9C943.4Stays distinct
Achromatopsia#C3C3C3 · #CCCCCC2.2Easily confused

Harmony

Color harmonies for #F0ABFC

Its complement is #96DE8C, a pale soft green.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#F0ABFC
  • Complement#96DE8C

Complementary

Open in Harmony Studio
  • −30°#C8BEFF
  • Base#F0ABFC
  • +30°#FFABD0
  • Base#F0ABFC
  • +120°#F4BF5A
  • +240°#35E1EC
  • Base#F0ABFC
  • +150°#CBD064
  • +210°#5AE4BD

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-fuchsia-300: #f0abfc;
}

Tailwind config

// tailwind.config.js — already built in as fuchsia-300;
// pin the v3 value explicitly like this:
module.exports = {
  theme: {
    extend: {
      colors: {
        fuchsia: { 300: '#f0abfc' },
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  /* v4 has its own fuchsia-300; this pins the v3 value. */
  --color-fuchsia-300: oklch(0.833 0.132 321.4);
}

Design token (W3C DTCG)

{
  "color": {
    "fuchsia-300": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.9412, 0.6706, 0.9882],
        "hex": "#f0abfc"
      },
      "$description": "Tailwind CSS v3 fuchsia-300"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let fuchsia300 = Color(.sRGB, red: 0.941, green: 0.671, blue: 0.988, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Fuchsia300 = Color(0xFFF0ABFC)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #F0ABFC in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.