Tailwind CSS v3 color

Tailwind pink-700 #BE185D

Tailwind CSS v3's pink-700 is #BE185D. It is a vivid pink in the pink family. In OKLCH it sits at lightness 0.525, chroma 0.199 and hue 4.0°. The nearest CSS named color is mediumvioletred (#C71585), ΔE2000 8.8 away.

Relative luminance
0.1239
OKLCH L · C · h
0.525 · 0.199 · 4.0
Best text
White 6.03:1
Hue family
Pink

#BE185D color codes

HEX
#BE185D
RGB
rgb(190, 24, 93)
HSL
hsl(335, 78%, 42%)
OKLCH
oklch(0.525 0.199 4.0)
OKLab
oklab(0.525 0.198 0.014)
CIELAB (D65)
L* 41.84, a* 64.70, b* 5.16
XYZ (D65)
X 23.54, Y 12.39, Z 11.51
CMYK (naive)
cmyk(0%, 87%, 51%, 25%)

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 #BE185D accessible?

White text on it reaches 6.03:1, passing AA. Black text manages only 3.47: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.47:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc +25
  • White text on it

    6.03:1

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

    3.47:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc −23
  • As text on white

    6.03:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc +78

Nearest versions that pass 4.5:1

  • For text on white

    #BE185D 6.03:1

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

  • For text on black

    #D5356F 4.56:1

    Lightening its OKLCH lightness from 0.52 to 0.59 reaches 4.56:1 on black, keeping the hue.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #BE185D 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 #BE185D

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

  1. 50#FFF1F4
    White
    1.09
    Black
    19.14
  2. 100#FFE3E9
    White
    1.20
    Black
    17.41
  3. 200#FFC6D2
    White
    1.47
    Black
    14.26
  4. 300#FF9CB5
    White
    1.96
    Black
    10.67
  5. 400#FF6294
    White
    2.82
    Black
    7.42
  6. 500#E04178
    White
    4.04
    Black
    5.19
  7. 600This color#BE185D
    White
    6.03
    Black
    3.47
  8. 700#A3004C
    White
    7.88
    Black
    2.66
  9. 800#790037
    White
    11.24
    Black
    1.86
  10. 900#510022
    White
    15.29
    Black
    1.37
  11. 950#310012
    White
    18.43
    Black
    1.13

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

Tailwind CSS v3 pink scale

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

  1. 50#FDF2F8
    White
    1.09
    Black
    19.23
  2. 100#FCE7F3
    White
    1.17
    Black
    17.86
  3. 200#FBCFE8
    White
    1.38
    Black
    15.19
  4. 300#F9A8D4
    White
    1.81
    Black
    11.57
  5. 400#F472B6
    White
    2.64
    Black
    7.92
  6. 500#EC4899
    White
    3.52
    Black
    5.95
  7. 600#DB2777
    White
    4.59
    Black
    4.56
  8. 700This color#BE185D
    White
    6.03
    Black
    3.47
  9. 800#9D174D
    White
    7.88
    Black
    2.66
  10. 900#831843
    White
    9.64
    Black
    2.17
  11. 950#500724
    White
    15.03
    Black
    1.39

Gamut

How vivid #BE185D can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.211; #BE185D uses 94% of it. Display P3, which many recent phones and laptops show, reaches 0.238 there: 13% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.199
sRGB edge
0.211
Display P3 edge
0.238
Rec. 2020 edge
0.279
Dominant wavelength
Complementary 496 nm
Excitation purity
58%
Chromaticity
x 0.4962, y 0.2613
  • This color#BE185D
  • Most vivid in sRGB#C2005C
  • Most vivid in Display P3oklch(0.525 0.238 4.0)

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

Use the wider color where screens show it
.accent {
  color: #be185d;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.7279 0 0.3537); }
}

Mixing

Mixing #BE185D

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%#DF8CAE
  • OKLab50%#E897AA
  • OKLCH50%#E897AA

Black #000000

  • sRGB50%#5F0C2F
  • OKLab50%#48041F
  • OKLCH50%#48041F

Its complement #007B70

  • sRGB50%#5F4A67
  • OKLab50%#855D67
  • OKLCH50%#525FBD
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #be185d, white);
color: color-mix(in oklch, #be185d 50%, white);

In use

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

Dark page

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

For text on this page, the nearest shade that passes is #DE3F77 4.53:1

Color vision

How #BE185D looks with color blindness

Deuteranopia changes it most, ΔE2000 36.3; tritanopia changes it least, 11.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

    #484E5E ΔE2000 30.6

    Distinct

    Reads as dark grayish blue

  • Deuteranopia

    No working green (medium-wavelength) cones

    #736E59 ΔE2000 36.3

    Distinct

    Reads as grayish brown

  • Tritanopia

    No working blue (short-wavelength) cones

    #CF003A ΔE2000 11.2

    Distinct

    Reads as vivid red

  • Achromatopsia

    No cone color vision; lightness only

    #636363 ΔE2000 26.8

    Distinct

    Reads as dark gray

Pairing check

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

VisionThe pairΔE2000Verdict
Normal vision#BE185D · #007B7062.6Stays distinct
Protanopia#484E5E · #74737017.1Stays distinct
Deuteranopia#736E59 · #66697115.3Stays distinct
Tritanopia#CF003A · #007E7859.6Stays distinct
Achromatopsia#636363 · #6D6D6D3.8Easily confused

Harmony

Color harmonies for #BE185D

Its complement is #007B70, a muted 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#BE185D
  • Complement#007B70

Complementary

Open in Harmony Studio
  • −30°#A92B98
  • Base#BE185D
  • +30°#BF2A00
  • Base#BE185D
  • +120°#5B7600
  • +240°#0070AF
  • Base#BE185D
  • +150°#007F45
  • +210°#00778B

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-pink-700: #be185d;
}

Tailwind config

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

Tailwind v4 theme

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

@theme {
  /* v4 has its own pink-700; this pins the v3 value. */
  --color-pink-700: oklch(0.525 0.199 4.0);
}

Design token (W3C DTCG)

{
  "color": {
    "pink-700": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.7451, 0.0941, 0.3647],
        "hex": "#be185d"
      },
      "$description": "Tailwind CSS v3 pink-700"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let pink700 = Color(.sRGB, red: 0.745, green: 0.094, blue: 0.365, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Pink700 = Color(0xFFBE185D)
}

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

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