Tailwind CSS v3 color

Tailwind fuchsia-700 #A21CAF

Tailwind CSS v3's fuchsia-700 is #A21CAF. It is a vivid magenta in the violet family. In OKLCH it sits at lightness 0.518, chroma 0.226 and hue 323.9°. The nearest CSS named color is darkorchid (#9932CC), ΔE2000 5.7 away.

Relative luminance
0.1161
OKLCH L · C · h
0.518 · 0.226 · 323.9
Best text
White 6.32:1
Hue family
Violet

#A21CAF color codes

HEX
#A21CAF
RGB
rgb(162, 28, 175)
HSL
hsl(295, 72%, 40%)
OKLCH
oklch(0.518 0.226 323.9)
OKLab
oklab(0.518 0.183 -0.133)
CIELAB (D65)
L* 40.59, a* 67.91, b* -47.53
XYZ (D65)
X 23.05, Y 11.61, Z 41.58
CMYK (naive)
cmyk(7%, 84%, 0%, 31%)

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 #A21CAF accessible?

White text on it reaches 6.32:1, passing AA. Black text manages only 3.32:1, enough for large text only.

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

    3.32:1

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

    6.32:1

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

    3.32:1

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

    6.32:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc +79

Nearest versions that pass 4.5:1

  • For text on white

    #A21CAF 6.32:1

    It already reaches 6.32:1 on white, so no change is needed.

  • For text on black

    #BB3CC8 4.59:1

    Lightening its OKLCH lightness from 0.52 to 0.59 reaches 4.59:1 on black, keeping the hue.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #A21CAF 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 #A21CAF

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

  1. 50#FEF0FF
    White
    1.09
    Black
    19.12
  2. 100#FDE0FF
    White
    1.21
    Black
    17.28
  3. 200#FAC0FF
    White
    1.49
    Black
    14.04
  4. 300#F691FF
    White
    2.01
    Black
    10.41
  5. 400#E166EE
    White
    2.86
    Black
    7.33
  6. 500#C445D1
    White
    4.10
    Black
    5.11
  7. 600This color#A21CAF
    White
    6.32
    Black
    3.32
  8. 700#8D009A
    White
    8.07
    Black
    2.59
  9. 800#680072
    White
    11.46
    Black
    1.83
  10. 900#45004C
    White
    15.47
    Black
    1.35
  11. 950#29002D
    White
    18.54
    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. 300#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. 700This color#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 #A21CAF can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.244; #A21CAF uses 93% of it. Display P3, which many recent phones and laptops show, reaches 0.264 there: 8% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.226
sRGB edge
0.244
Display P3 edge
0.264
Rec. 2020 edge
0.303
Dominant wavelength
Complementary 554 nm
Excitation purity
65%
Chromaticity
x 0.3024, y 0.1523
  • This color#A21CAF
  • Most vivid in sRGB#A600B4
  • Most vivid in Display P3oklch(0.518 0.264 323.9)

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

Use the wider color where screens show it
.accent {
  color: #a21caf;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.6095 0 0.7051); }
}

Mixing

Mixing #A21CAF

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%#D18ED7
  • OKLab50%#D498D9
  • OKLCH50%#D498D9

Black #000000

  • sRGB50%#510E58
  • OKLab50%#3C0541
  • OKLCH50%#3C0541

Its complement #007F16

  • sRGB50%#514E63
  • OKLab50%#716372
  • OKLCH50%#A04F00
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #a21caf, white);
color: color-mix(in oklch, #a21caf 50%, white);

In use

#A21CAF 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:16.32:1 Passes
  • Link and body-size textText, 4.5:16.32:1 Passes
  • Large headingLarge text, 3:16.32:1 Passes
  • Icons, borders and focus ringsNon-text, 3:16.32:1 Passes

Dark page

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

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

Color vision

How #A21CAF looks with color blindness

Achromatopsia changes it most, ΔE2000 29.0; tritanopia changes it least, 16.7.

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

    #0056B3 ΔE2000 28.2

    Distinct

    Reads as dark soft blue

  • Deuteranopia

    No working green (medium-wavelength) cones

    #3C65AC ΔE2000 28.4

    Distinct

    Reads as soft blue

  • Tritanopia

    No working blue (short-wavelength) cones

    #A53C69 ΔE2000 16.7

    Distinct

    Reads as soft pink

  • Achromatopsia

    No cone color vision; lightness only

    #606060 ΔE2000 29.0

    Distinct

    Reads as dark gray

Pairing check

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

VisionThe pairΔE2000Verdict
Normal vision#A21CAF · #007F1686.6Stays distinct
Protanopia#0056B3 · #82720057.6Stays distinct
Deuteranopia#3C65AC · #766A2348.3Stays distinct
Tritanopia#A53C69 · #007B6C49.9Stays distinct
Achromatopsia#606060 · #6D6D6D4.9Easily confused

Harmony

Color harmonies for #A21CAF

Its complement is #007F16, a soft green.

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

Open the Harmony Studio
  • Base#A21CAF
  • Complement#007F16

Complementary

Open in Harmony Studio
  • −30°#753ADA
  • Base#A21CAF
  • +30°#BB0071
  • Base#A21CAF
  • +120°#856200
  • +240°#007780
  • Base#A21CAF
  • +150°#686F00
  • +210°#007A64

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-700: #a21caf;
}

Tailwind config

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

Tailwind v4 theme

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

@theme {
  /* v4 has its own fuchsia-700; this pins the v3 value. */
  --color-fuchsia-700: oklch(0.518 0.226 323.9);
}

Design token (W3C DTCG)

{
  "color": {
    "fuchsia-700": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.6353, 0.1098, 0.6863],
        "hex": "#a21caf"
      },
      "$description": "Tailwind CSS v3 fuchsia-700"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let fuchsia700 = Color(.sRGB, red: 0.635, green: 0.110, blue: 0.686, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Fuchsia700 = Color(0xFFA21CAF)
}

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 #A21CAF in the tools

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