Skip to content

Tailwind CSS v4 default palette

Tailwind red-700: #C10007

In Tailwind CSS v4, red-700 is defined as --color-red-700: oklch(50.5% 0.213 27.518), which is #C10007 in hex and rgb(193, 0, 7): a medium-dark, vivid red. In Tailwind v3, red-700 was #B91C1C.

red-700#C10007

In OKLCH, red-700 has a lightness of 50.5%, chroma 0.213 and hue 27.5°.

This OKLCH value lies outside sRGB. The hex #C10007 is the sRGB fallback from the CSS Color 4 gamut mapping algorithm; on Display P3 screens browsers show a more saturated color, close to color(display-p3 0.6927 0.1162 0.1047).

In v3, red-700 was #B91C1C. The v4 value is ΔE OK 2.3 away; v4 is more saturated.

Tailwind red is the default choice for errors and destructive actions; the 600 and 700 shades are the usual picks for text and buttons on white.

Color codes for red-700

Color codes for red-700
Tailwind v4 token--color-red-700
OKLCH (source value)oklch(50.5% 0.213 27.518)
HEX#C10007
RGBrgb(193, 0, 7)
HSLhsl(358, 100%, 38%)
HWBhwb(358 0% 24%)
CMYK (naive, no ICC profile)cmyk(0%, 100%, 96%, 24%)
Decimal12,648,455
Display P3color(display-p3 0.6927 0.1162 0.1047)
Tailwind v3 hex#B91C1C
Utility classesbg-red-700, text-red-700, border-red-700

Tailwind red scale

Contrast and accessibility

On red-700, white text has a contrast ratio of 6.42:1 and passes AA for normal text; black text reaches 3.27:1.

WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on red-7003.27:1FailPassFailFail25.0
White text on red-7006.42:1PassPassFailPass−84.3
Red-700 text on white6.42:1PassPassFailPass79.1
Red-700 text on black3.27:1FailPassFailFail−22.7

Tints and shades

Each step mixes var(--color-red-700) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-red-700), white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #c40d13
  2. 15%
    #ca262c
  3. 25%
    #d14045
  4. 35%
    #d7595e
  5. 45%
    #dd7377
  6. 55%
    #e38c8f
  7. 65%
    #e9a6a8
  8. 75%
    #f0bfc1
  9. 85%
    #f6d9da
  10. 95%
    #fcf2f3

Shades (mixed with black)

  1. 5%
    #b70007
  2. 15%
    #a40006
  3. 25%
    #910005
  4. 35%
    #7d0005
  5. 45%
    #6a0004
  6. 55%
    #570003
  7. 65%
    #440002
  8. 75%
    #300002
  9. 85%
    #1d0001
  10. 95%
    #0a0000

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, red-700's complementary color is #007484 (close to teal), its analogous colors are #B80065 and #9F4900, and its triadic partners are #007E14 and #3152DC. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#007484
Analogous−30°, +30°#b80065#9f4900
Triadic+120°, +240°#007e14#3152dc
Split-complementary+150°, +210°#007964#006da8

Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.

Warm or cool?

Tailwind red-700 is a warm color: its hue is 358° on the HSL wheel, in the red, orange and yellow range (0° to about 70°, plus reds above 330°) that is conventionally called warm.

Nearest named and Tailwind colors

Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
firebrick#b222223.4
brown#a52a2a5.9
crimson#dc143c7.2

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
rose-700#c700364.2
orange-700#ca35006.4
red-800#9f07127.1

Code snippets

Tailwind CSS
<div class="bg-red-700 text-white">...</div>
<p class="text-red-700 border-red-700">...</p>
CSS
.element {
  color: var(--color-red-700);
  background-color: oklch(50.5% 0.213 27.518);
  border-color: #c10007;
  outline-color: rgb(193 0 7);
}
SwiftUI
import SwiftUI

extension Color {
  static let red700 = Color(red: 0.757, green: 0.000, blue: 0.027)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Red700 = Color(0xFFC10007)
Flutter
import 'package:flutter/material.dart';

const red700 = Color(0xFFC10007);
Android XML
<!-- res/values/colors.xml -->
<color name="red_700">#C10007</color>

Frequently asked questions

What is the hex code for Tailwind red-700?
In Tailwind CSS v4, red-700 is oklch(50.5% 0.213 27.518), which converts to #C10007 (rgb(193, 0, 7)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #B91C1C.
What is the difference between red-700 in Tailwind v3 and v4?
v3 used the hex #B91C1C; v4 redefined the palette in OKLCH as oklch(50.5% 0.213 27.518). In v3, red-700 was #B91C1C. The v4 value is ΔE OK 2.3 away; v4 is more saturated.
How do I use red-700 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-red-700). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on red-700?
White text on red-700 has a contrast ratio of 6.42:1, which passes AA for normal text but not AAA under WCAG 2.2. Black text reaches 3.27:1 and passes AA only for large text (24 px, or 18.66 px bold, and up). In APCA terms that is Lc −84.3 for white and Lc 25.0 for black.
Which CSS named color is closest to red-700?
The closest is firebrick (#B22222) at ΔE OK 3.4, followed by brown and crimson.

Last reviewed by Arielton Oberek.