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.

The studio needs JavaScript.

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.

  1. 50#FDF0FF
    White
    1.10
    Black
    19.08
  2. 100#FBE1FF
    White
    1.21
    Black
    17.31
  3. 200#F7C2FF
    White
    1.48
    Black
    14.11
  4. 300#F195FF
    White
    2.00
    Black
    10.48
  5. 400This color#D946EF
    White
    3.45
    Black
    6.07
  6. 500#C933DF
    White
    4.18
    Black
    5.02
  7. 600#AE00C3
    White
    5.85
    Black
    3.58
  8. 700#8B009D
    White
    8.12
    Black
    2.58
  9. 800#670074
    White
    11.48
    Black
    1.82
  10. 900#45004E
    White
    15.40
    Black
    1.36
  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. 300#F0ABFC
    White
    1.75
    Black
    11.93
  5. 400#E879F9
    White
    2.46
    Black
    8.53
  6. 500This color#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 #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.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • 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.

Use the wider color where screens show it
.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
In CSS
/* 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.

VisionThe pairΔE2000Verdict
Normal vision#D946EF · #10B40097.6Stays distinct
Protanopia#007FF4 · #B8A20063.4Stays distinct
Deuteranopia#5E8FEB · #A9972656.1Stays distinct
Tritanopia#DC6597 · #00AE9857.4Stays distinct
Achromatopsia#8A8A8A · #9B9B9B5.7Harder 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
  • Base#D946EF
  • +120°#BE8A00
  • +240°#00A8B2
  • Base#D946EF
  • +150°#979C00
  • +210°#00AD8B

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-500: #d946ef;
}

Tailwind config

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

Tailwind v4 theme

/* 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);
}

Design token (W3C DTCG)

{
  "color": {
    "fuchsia-500": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.851, 0.2745, 0.9373],
        "hex": "#d946ef"
      },
      "$description": "Tailwind CSS v3 fuchsia-500"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let fuchsia500 = Color(.sRGB, red: 0.851, green: 0.275, blue: 0.937, opacity: 1)
}

Jetpack Compose color

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.