Skip to content

Tailwind CSS v4 default palette

Tailwind purple-700: #8200DB

In Tailwind CSS v4, purple-700 is defined as --color-purple-700: oklch(49.6% 0.265 301.924), which is #8200DB in hex and rgb(130, 0, 219): a medium-dark, vivid violet. In Tailwind v3, purple-700 was #7E22CE.

purple-700#8200DB

In OKLCH, purple-700 has a lightness of 49.6%, chroma 0.265 and hue 301.9°.

This OKLCH value lies outside sRGB. The hex #8200DB 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.4653 0.0653 0.8244).

In v3, purple-700 was #7E22CE. The v4 value is ΔE OK 2.8 away; v4 is more saturated.

Tailwind purple is a redder, more magenta-leaning violet than violet, with very high chroma in its mid shades.

Color codes for purple-700

Color codes for purple-700
Tailwind v4 token--color-purple-700
OKLCH (source value)oklch(49.6% 0.265 301.924)
HEX#8200DB
RGBrgb(130, 0, 219)
HSLhsl(276, 100%, 43%)
HWBhwb(276 0% 14%)
CMYK (naive, no ICC profile)cmyk(41%, 100%, 0%, 14%)
Decimal8,519,899
Display P3color(display-p3 0.4653 0.0653 0.8244)
Tailwind v3 hex#7E22CE
Utility classesbg-purple-700, text-purple-700, border-purple-700

Tailwind purple scale

Contrast and accessibility

On purple-700, white text has a contrast ratio of 7.06:1 and passes AAA at any text size; black text reaches 2.97: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 purple-7002.97:1FailFailFailFail22.1
White text on purple-7007.06:1PassPassPassPass−87.1
Purple-700 text on white7.06:1PassPassPassPass82.0
Purple-700 text on black2.97:1FailFailFailFail−19.9

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #880ddd
  2. 15%
    #9526e0
  3. 25%
    #a140e4
  4. 35%
    #ae59e8
  5. 45%
    #ba73eb
  6. 55%
    #c78cef
  7. 65%
    #d3a6f2
  8. 75%
    #e0bff6
  9. 85%
    #ecd9fa
  10. 95%
    #f9f2fd

Shades (mixed with black)

  1. 5%
    #7c00d0
  2. 15%
    #6f00ba
  3. 25%
    #6200a4
  4. 35%
    #55008e
  5. 45%
    #480078
  6. 55%
    #3a0063
  7. 65%
    #2e004d
  8. 75%
    #210037
  9. 85%
    #140021
  10. 95%
    #07000b

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, purple-700's complementary color is #556D00 (close to darkolivegreen), its analogous colors are #3C38F4 and #A8009E, and its triadic partners are #964B00 and #007567. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#556d00
Analogous−30°, +30°#3c38f4#a8009e
Triadic+120°, +240°#964b00#007567
Split-complementary+150°, +210°#7b5e00#007a2e

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 purple-700 is a cool color: its hue is 276° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.

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
blueviolet#8a2be24.1
darkviolet#9400d34.1
darkorchid#9932cc7.2

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
violet-700#7008e74.4
violet-600#7f22fe6.4
purple-600#9810fa6.6

Code snippets

Tailwind CSS
<div class="bg-purple-700 text-white">...</div>
<p class="text-purple-700 border-purple-700">...</p>
CSS
.element {
  color: var(--color-purple-700);
  background-color: oklch(49.6% 0.265 301.924);
  border-color: #8200db;
  outline-color: rgb(130 0 219);
}
SwiftUI
import SwiftUI

extension Color {
  static let purple700 = Color(red: 0.510, green: 0.000, blue: 0.859)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const purple700 = Color(0xFF8200DB);
Android XML
<!-- res/values/colors.xml -->
<color name="purple_700">#8200DB</color>

Frequently asked questions

What is the hex code for Tailwind purple-700?
In Tailwind CSS v4, purple-700 is oklch(49.6% 0.265 301.924), which converts to #8200DB (rgb(130, 0, 219)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #7E22CE.
What is the difference between purple-700 in Tailwind v3 and v4?
v3 used the hex #7E22CE; v4 redefined the palette in OKLCH as oklch(49.6% 0.265 301.924). In v3, purple-700 was #7E22CE. The v4 value is ΔE OK 2.8 away; v4 is more saturated.
How do I use purple-700 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-purple-700). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on purple-700?
White text on purple-700 has a contrast ratio of 7.06:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.97:1 and fails AA even for large text. In APCA terms that is Lc −87.1 for white and Lc 22.1 for black.
Which CSS named color is closest to purple-700?
The closest is blueviolet (#8A2BE2) at ΔE OK 4.1, followed by darkviolet and darkorchid.

Last reviewed by Arielton Oberek.