Tailwind CSS v3 color
Tailwind fuchsia-500 #D946EF
Tailwind CSS v3's fuchsia-500 is #D946EF. It is a light vivid magenta in the violet family. In OKLCH it sits at lightness 0.667, chroma 0.259 and hue 322.1°. The nearest CSS named color is fuchsia (#FF00FF), ΔE2000 5.2 away.
- Relative luminance
- 0.2536
- OKLCH L · C · h
- 0.667 · 0.259 · 322.1
- Best text
- Black 6.07:1
- Hue family
- Violet
#D946EF color codes
- HEX
#D946EF- RGB
rgb(217, 70, 239)- HSL
hsl(292, 84%, 61%)- OKLCH
oklch(0.667 0.259 322.1)- OKLab
oklab(0.667 0.205 -0.159)- CIELAB (D65)
L* 57.43, a* 77.14, b* -56.90- XYZ (D65)
X 46.38, Y 25.37, Z 84.10- CMYK (naive)
cmyk(9%, 71%, 0%, 6%)
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 #D946EF accessible?
Black text on it reaches 6.07:1, passing AA. White text manages only 3.45: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
6.07:1
- AA passes
- AA large passes
- AAA fails
- APCA Lc +43
-
White text on it
3.45:1
- AA fails
- AA large passes
- AAA fails
- APCA Lc −66
-
As text on black
6.07:1
- AA passes
- AA large passes
- AAA fails
- APCA Lc −40
-
As text on white
3.45:1
- AA fails
- AA large passes
- AAA fails
- APCA Lc +60
Nearest versions that pass 4.5:1
-
For text on white
#C32AD9 4.51:1
Darkening its OKLCH lightness from 0.67 to 0.60 reaches 4.51:1 on white, keeping the hue.
-
For text on black
#D946EF 6.07:1
It already reaches 6.07:1 on black, so no change is needed.
Checking another pair? Use the Contrast Checker.
Studio
Adjust #D946EF 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 #D946EF
Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #D946EF sits at step 400.
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 #D946EF can get
At its lightness and hue, sRGB reaches OKLCH chroma 0.307; #D946EF uses 84% of it. Display P3, which many recent phones and laptops show, reaches 0.335 there: 9% more.
- sRGB
- Display P3
- Rec. 2020
- Dominant wavelength
- OKLCH chroma
- 0.259
- sRGB edge
- 0.307
- Display P3 edge
- 0.335
- Rec. 2020 edge
- 0.342
- Dominant wavelength
- Complementary 556 nm
- Excitation purity
- 60%
- Chromaticity
- x 0.2976, y 0.1628
- This color#D946EF
- Most vivid in sRGB#E41AFF
- Most vivid in Display P3oklch(0.667 0.335 322.1)
On a screen without Display P3 the last tile shows the sRGB edge instead.
.accent {
color: #d946ef;
}
@media (color-gamut: p3) {
.accent { color: color(display-p3 0.8406 0.0801 1); }
}
Mixing
Mixing #D946EF
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%#ECA3F7
- OKLab50%#F0ACFA
- OKLCH50%#F0ACFA
Black #000000
- sRGB50%#6D2378
- OKLab50%#53155C
- OKLCH50%#53155C
Its complement #10B400
- sRGB50%#757D78
- OKLab50%#9A919B
- OKLCH50%#00A1D9
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #d946ef, white);
color: color-mix(in oklch, #d946ef 50%, white);
In use
#D946EF 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.07:1 Passes
- Link and body-size textText, 4.5:13.45:1 Fails
- Large headingLarge text, 3:13.45:1 Passes
- Icons, borders and focus ringsNon-text, 3:13.45:1 Passes
For text on this page, the nearest shade that passes is #C32AD9 4.51:1
Dark page
- Button labelText, 4.5:16.07:1 Passes
- Link and body-size textText, 4.5:15.41:1 Passes
- Large headingLarge text, 3:15.41:1 Passes
- Icons, borders and focus ringsNon-text, 3:15.41:1 Passes
Color vision
How #D946EF looks with color blindness
Protanopia changes it most, ΔE2000 33.4; tritanopia changes it least, 18.0.
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
#007FF4 ΔE2000 33.4
Distinct
Reads as vivid blue
-
Deuteranopia
No working green (medium-wavelength) cones
#5E8FEB ΔE2000 30.7
Distinct
Reads as soft blue
-
Tritanopia
No working blue (short-wavelength) cones
#DC6597 ΔE2000 18.0
Distinct
Reads as light soft pink
-
Achromatopsia
No cone color vision; lightness only
#8A8A8A ΔE2000 30.4
Distinct
Reads as gray
Pairing check
Checked against its complement, #10B400. Their lightness contrast is only 1.24:1, so where hue collapses, add a label, icon or pattern.
| Vision | The pair | ΔE2000 | Verdict |
|---|---|---|---|
| Normal vision | #D946EF · #10B400 | 97.6 | Stays distinct |
| Protanopia | #007FF4 · #B8A200 | 63.4 | Stays distinct |
| Deuteranopia | #5E8FEB · #A99726 | 56.1 | Stays distinct |
| Tritanopia | #DC6597 · #00AE98 | 57.4 | Stays distinct |
| Achromatopsia | #8A8A8A · #9B9B9B | 5.7 | Harder to tell apart |
Harmony
Color harmonies for #D946EF
Its complement is #10B400, a light vivid green.
Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.
Open the Harmony Studio- Base#D946EF
- Complement#10B400
Complementary
Open in Harmony Studio- −30°#9A77FF
- Base#D946EF
- +30°#FF26A4
Analogous
Open in Harmony Studio- Base#D946EF
- +120°#BE8A00
- +240°#00A8B2
Triadic
Open in Harmony Studio- Base#D946EF
- +150°#979C00
- +210°#00AD8B
Split-complementary
Open in Harmony StudioCode
Design tokens
Ready-to-paste tokens in six formats. Rename them to fit your system.
:root {
--color-fuchsia-500: #d946ef;
}
// tailwind.config.js — already built in as fuchsia-500;
// pin the v3 value explicitly like this:
module.exports = {
theme: {
extend: {
colors: {
fuchsia: { 500: '#d946ef' },
},
},
},
};
/* app.css — Tailwind CSS v4 */
@import "tailwindcss";
@theme {
/* v4 has its own fuchsia-500; this pins the v3 value. */
--color-fuchsia-500: oklch(0.667 0.259 322.1);
}
{
"color": {
"fuchsia-500": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.851, 0.2745, 0.9373],
"hex": "#d946ef"
},
"$description": "Tailwind CSS v3 fuchsia-500"
}
}
}
import SwiftUI
enum Palette {
static let fuchsia500 = Color(.sRGB, red: 0.851, green: 0.275, blue: 0.937, opacity: 1)
}
import androidx.compose.ui.graphics.Color
object Palette {
val Fuchsia500 = Color(0xFFD946EF)
}
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 #D946EF 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.