Tailwind CSS v3 color

Tailwind fuchsia-950 #4A044E

Tailwind CSS v3's fuchsia-950 is #4A044E. It is a very dark soft magenta in the violet family. In OKLCH it sits at lightness 0.293, chroma 0.131 and hue 325.7°. The nearest CSS named color is indigo (#4B0082), ΔE2000 10.3 away.

Relative luminance
0.0209
OKLCH L · C · h
0.293 · 0.131 · 325.7
Best text
White 14.80:1
Hue family
Violet

#4A044E color codes

HEX
#4A044E
RGB
rgb(74, 4, 78)
HSL
hsl(297, 90%, 16%)
OKLCH
oklch(0.293 0.131 325.7)
OKLab
oklab(0.293 0.108 -0.074)
CIELAB (D65)
L* 15.97, a* 39.57, b* -26.45
XYZ (D65)
X 4.24, Y 2.09, Z 7.39
CMYK (naive)
cmyk(5%, 95%, 0%, 69%)

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 #4A044E accessible?

White text on it reaches 14.80:1, passing AAA. Black text fails at 1.41: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

    1.41:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc 0

    Text is here, unreadable at 1.41:1

  • White text on it

    14.80:1

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

    1.41:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc 0

    Text is here, unreadable at 1.41:1

  • As text on white

    14.80:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +100

Nearest versions that pass 4.5:1

  • For text on white

    #4A044E 14.80:1

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

  • For text on black

    #A05CA3 4.55:1

    Lightening its OKLCH lightness from 0.29 to 0.58 reaches 4.55:1 on black, keeping the hue.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #4A044E 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 #4A044E

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

  1. 50#FFEFFF
    White
    1.10
    Black
    19.04
  2. 100#FFDFFF
    White
    1.21
    Black
    17.25
  3. 200#FDBEFF
    White
    1.50
    Black
    13.98
  4. 300#E6A2E9
    White
    1.96
    Black
    10.70
  5. 400#CA84CD
    White
    2.72
    Black
    7.69
  6. 500#AE68B0
    White
    3.88
    Black
    5.40
  7. 600#945197
    White
    5.40
    Black
    3.88
  8. 700#7B3B7E
    White
    7.58
    Black
    2.76
  9. 800#5E2361
    White
    11.11
    Black
    1.88
  10. 900This color#4A044E
    White
    14.80
    Black
    1.41
  11. 950#29002C
    White
    18.57
    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. 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. 950This color#4A044E
    White
    14.80
    Black
    1.41

Gamut

How vivid #4A044E can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.137; #4A044E uses 95% of it. Display P3, which many recent phones and laptops show, reaches 0.149 there: 9% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.131
sRGB edge
0.137
Display P3 edge
0.149
Rec. 2020 edge
0.171
Dominant wavelength
Complementary 553 nm
Excitation purity
66%
Chromaticity
x 0.3092, y 0.1525
  • This color#4A044E
  • Most vivid in sRGB#4B0050
  • Most vivid in Display P3oklch(0.293 0.149 325.7)

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

Use the wider color where screens show it
.accent {
  color: #4a044e;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.2749 0 0.3111); }
}

Mixing

Mixing #4A044E

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%#A582A7
  • OKLab50%#A381A4
  • OKLCH50%#A381A4

Black #000000

  • sRGB50%#250227
  • OKLab50%#170119
  • OKLCH50%#170119

Its complement #00370A

  • sRGB50%#251E2C
  • OKLab50%#312932
  • OKLCH50%#462000
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #4a044e, white);
color: color-mix(in oklch, #4a044e 50%, white);

In use

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

Dark page

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

For text on this page, the nearest shade that passes is #AA65AD 4.61:1

Color vision

How #4A044E looks with color blindness

Achromatopsia changes it most, ΔE2000 24.3; tritanopia changes it least, 13.2.

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

    #002250 ΔE2000 19.5

    Distinct

    Reads as very dark muted blue

  • Deuteranopia

    No working green (medium-wavelength) cones

    #172A4C ΔE2000 19.7

    Distinct

    Reads as very dark muted blue

  • Tritanopia

    No working blue (short-wavelength) cones

    #4C142B ΔE2000 13.2

    Distinct

    Reads as very dark muted wine

  • Achromatopsia

    No cone color vision; lightness only

    #282828 ΔE2000 24.3

    Distinct

    Reads as near-black

Pairing check

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

VisionThe pairΔE2000Verdict
Normal vision#4A044E · #00370A59.3Stays distinct
Protanopia#002250 · #38310439.9Stays distinct
Deuteranopia#172A4C · #322D0E32.5Stays distinct
Tritanopia#4C142B · #00352E38.1Stays distinct
Achromatopsia#282828 · #2E2E2E1.9Easily confused

Harmony

Color harmonies for #4A044E

Its complement is #00370A, a very dark muted green.

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

Open the Harmony Studio
  • Base#4A044E
  • Complement#00370A

Complementary

Open in Harmony Studio
  • −30°#341364
  • Base#4A044E
  • +30°#55002E
  • Base#4A044E
  • +120°#3A2900
  • +240°#003338
  • Base#4A044E
  • +150°#2B3000
  • +210°#00352B

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-950: #4a044e;
}

Tailwind config

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

Tailwind v4 theme

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

@theme {
  /* v4 has its own fuchsia-950; this pins the v3 value. */
  --color-fuchsia-950: oklch(0.293 0.131 325.7);
}

Design token (W3C DTCG)

{
  "color": {
    "fuchsia-950": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.2902, 0.0157, 0.3059],
        "hex": "#4a044e"
      },
      "$description": "Tailwind CSS v3 fuchsia-950"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let fuchsia950 = Color(.sRGB, red: 0.290, green: 0.016, blue: 0.306, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Fuchsia950 = Color(0xFF4A044E)
}

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

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