Tailwind CSS v3 color

Tailwind rose-950 #4C0519

Tailwind CSS v3's rose-950 is #4C0519. It is a very dark soft wine in the pink family. In OKLCH it sits at lightness 0.271, chroma 0.101 and hue 12.1°. The nearest CSS named color is maroon (#800000), ΔE2000 16.6 away.

Relative luminance
0.0172
OKLCH L · C · h
0.271 · 0.101 · 12.1
Best text
White 15.63:1
Hue family
Pink

#4C0519 color codes

HEX
#4C0519
RGB
rgb(76, 5, 25)
HSL
hsl(343, 88%, 16%)
OKLCH
oklch(0.271 0.101 12.1)
OKLab
oklab(0.271 0.099 0.021)
CIELAB (D65)
L* 13.92, a* 32.67, b* 8.59
XYZ (D65)
X 3.21, Y 1.72, Z 1.08
CMYK (naive)
cmyk(0%, 93%, 67%, 70%)

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

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

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

    Text is here, unreadable at 1.34:1

  • White text on it

    15.63:1

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

    1.34:1

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

    Text is here, unreadable at 1.34:1

  • As text on white

    15.63:1

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

Nearest versions that pass 4.5:1

  • For text on white

    #4C0519 15.63:1

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

  • For text on black

    #AC5F69 4.59:1

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

Checking another pair? Use the Contrast Checker.

Studio

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

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

  1. 50#FFF1F2
    White
    1.09
    Black
    19.11
  2. 100#FFE3E6
    White
    1.20
    Black
    17.38
  3. 200#FFC7CC
    White
    1.46
    Black
    14.29
  4. 300#F4A4AD
    White
    1.95
    Black
    10.76
  5. 400#D88791
    White
    2.69
    Black
    7.79
  6. 500#BA6C76
    White
    3.82
    Black
    5.49
  7. 600#A0545F
    White
    5.34
    Black
    3.92
  8. 700#853E49
    White
    7.54
    Black
    2.78
  9. 800#672732
    White
    10.97
    Black
    1.91
  10. 900This color#4C0519
    White
    15.63
    Black
    1.34
  11. 950#30010C
    White
    18.49
    Black
    1.13

Under each step, white and black text on it; a bold figure passes 4.5:1.

Tailwind CSS v3 rose scale

The real Tailwind palette, for comparison with the computed ramp above.

  1. 50#FFF1F2
    White
    1.09
    Black
    19.11
  2. 100#FFE4E6
    White
    1.20
    Black
    17.49
  3. 200#FECDD3
    White
    1.41
    Black
    14.88
  4. 300#FDA4AF
    White
    1.89
    Black
    11.10
  5. 400#FB7185
    White
    2.69
    Black
    7.80
  6. 500#F43F5E
    White
    3.67
    Black
    5.71
  7. 600#E11D48
    White
    4.69
    Black
    4.47
  8. 700#BE123C
    White
    6.28
    Black
    3.34
  9. 800#9F1239
    White
    8.01
    Black
    2.61
  10. 900#881337
    White
    9.56
    Black
    2.19
  11. 950This color#4C0519
    White
    15.63
    Black
    1.34

Gamut

How vivid #4C0519 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.109; #4C0519 uses 93% of it. Display P3, which many recent phones and laptops show, reaches 0.123 there: 13% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.101
sRGB edge
0.109
Display P3 edge
0.123
Rec. 2020 edge
0.144
Dominant wavelength
Complementary 494 nm
Excitation purity
56%
Chromaticity
x 0.5344, y 0.2856
  • This color#4C0519
  • Most vivid in sRGB#4E0018
  • Most vivid in Display P3oklch(0.271 0.123 12.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: #4c0519;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.2928 0 0.0894); }
}

Mixing

Mixing #4C0519

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%#A6828C
  • OKLab50%#A77F83
  • OKLCH50%#A77F83

Black #000000

  • sRGB50%#26030D
  • OKLab50%#180104
  • OKLCH50%#180104

Its complement #002E2D

  • sRGB50%#261A23
  • OKLab50%#332123
  • OKLCH50%#222049
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #4c0519, white);
color: color-mix(in oklch, #4c0519 50%, white);

In use

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

Dark page

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

For text on this page, the nearest shade that passes is #B46670 4.52:1

Color vision

How #4C0519 looks with color blindness

Deuteranopia changes it most, ΔE2000 28.2; tritanopia changes it least, 5.3.

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

    #1A1A19 ΔE2000 23.5

    Distinct

    Reads as near-black

  • Deuteranopia

    No working green (medium-wavelength) cones

    #2C2917 ΔE2000 28.2

    Distinct

    Reads as very dark grayish brown

  • Tritanopia

    No working blue (short-wavelength) cones

    #54000E ΔE2000 5.3

    Noticeable

    Reads as very dark soft brown

  • Achromatopsia

    No cone color vision; lightness only

    #232323 ΔE2000 22.6

    Distinct

    Reads as near-black

Pairing check

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

VisionThe pairΔE2000Verdict
Normal vision#4C0519 · #002E2D40.7Stays distinct
Protanopia#1A1A19 · #2A2B2D5.8Harder to tell apart
Deuteranopia#2C2917 · #24262D15.1Stays distinct
Tritanopia#54000E · #00302E40.7Stays distinct
Achromatopsia#232323 · #2828281.6Easily confused

Harmony

Color harmonies for #4C0519

Its complement is #002E2D, a very dark grayish teal, on the cool side of the wheel.

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

Open the Harmony Studio
  • Base#4C0519
  • Complement#002E2D

Complementary

Open in Harmony Studio
  • −30°#450934
  • Base#4C0519
  • +30°#461400
  • Base#4C0519
  • +120°#182E00
  • +240°#00274D
  • Base#4C0519
  • +150°#002F1D
  • +210°#002C38

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

Tailwind config

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

Tailwind v4 theme

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

@theme {
  /* v4 has its own rose-950; this pins the v3 value. */
  --color-rose-950: oklch(0.271 0.101 12.1);
}

Design token (W3C DTCG)

{
  "color": {
    "rose-950": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.298, 0.0196, 0.098],
        "hex": "#4c0519"
      },
      "$description": "Tailwind CSS v3 rose-950"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let rose950 = Color(.sRGB, red: 0.298, green: 0.020, blue: 0.098, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Rose950 = Color(0xFF4C0519)
}

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

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