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.
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.
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.
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.
- 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.
.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
/* 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.
| Vision | The pair | ΔE2000 | Verdict |
|---|---|---|---|
| Normal vision | #A21CAF · #007F16 | 86.6 | Stays distinct |
| Protanopia | #0056B3 · #827200 | 57.6 | Stays distinct |
| Deuteranopia | #3C65AC · #766A23 | 48.3 | Stays distinct |
| Tritanopia | #A53C69 · #007B6C | 49.9 | Stays distinct |
| Achromatopsia | #606060 · #6D6D6D | 4.9 | Easily 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
Analogous
Open in Harmony Studio- Base#A21CAF
- +120°#856200
- +240°#007780
Triadic
Open in Harmony Studio- Base#A21CAF
- +150°#686F00
- +210°#007A64
Split-complementary
Open in Harmony StudioCode
Design tokens
Ready-to-paste tokens in six formats. Rename them to fit your system.
:root {
--color-fuchsia-700: #a21caf;
}
// tailwind.config.js — already built in as fuchsia-700;
// pin the v3 value explicitly like this:
module.exports = {
theme: {
extend: {
colors: {
fuchsia: { 700: '#a21caf' },
},
},
},
};
/* 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);
}
{
"color": {
"fuchsia-700": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.6353, 0.1098, 0.6863],
"hex": "#a21caf"
},
"$description": "Tailwind CSS v3 fuchsia-700"
}
}
}
import SwiftUI
enum Palette {
static let fuchsia700 = Color(.sRGB, red: 0.635, green: 0.110, blue: 0.686, opacity: 1)
}
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.
- Color InspectorEvery format, its names, contrast and color vision in one panel.
- Contrast SystemBlack and white text on this color, with fixes in both directions.
- Harmony StudioPalettes built from this color, walked to a contrast target if you ask.
- Color Space ConverterThe same color in 34 notations, with its gamut headroom.
- Color Name FinderThe nearest of 1,055 color names by ΔE2000.