Skip to content

Tailwind CSS v4 default palette

Tailwind violet-700: #7008E7

In Tailwind CSS v4, violet-700 is defined as --color-violet-700: oklch(49.1% 0.27 292.581), which is #7008E7 in hex and rgb(112, 8, 231): a medium-dark, vivid violet. In Tailwind v3, violet-700 was #6D28D9.

violet-700#7008E7

In OKLCH, violet-700 has a lightness of 49.1%, chroma 0.270 and hue 292.6°.

The value fits inside sRGB, so the hex #7008E7 represents it without loss on any screen.

In v3, violet-700 was #6D28D9. The v4 value is ΔE OK 2.9 away; v4 is more saturated.

Tailwind violet sits between indigo and purple, a popular choice for AI and creative-tool branding.

Color codes for violet-700

Color codes for violet-700
Tailwind v4 token--color-violet-700
OKLCH (source value)oklch(49.1% 0.27 292.581)
HEX#7008E7
RGBrgb(112, 8, 231)
HSLhsl(268, 93%, 47%)
HWBhwb(268 3% 9%)
CMYK (naive, no ICC profile)cmyk(52%, 97%, 0%, 9%)
Decimal7,342,311
Tailwind v3 hex#6D28D9
Utility classesbg-violet-700, text-violet-700, border-violet-700

Tailwind violet scale

Contrast and accessibility

On violet-700, white text has a contrast ratio of 7.29:1 and passes AAA at any text size; black text reaches 2.87: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 violet-7002.87:1FailFailFailFail21.0
White text on violet-7007.29:1PassPassPassPass−88.1
Violet-700 text on white7.29:1PassPassPassPass83.0
Violet-700 text on black2.87:1FailFailFailFail−18.9

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #7714e8
  2. 15%
    #852deb
  3. 25%
    #9446ed
  4. 35%
    #a25eef
  5. 45%
    #b077f2
  6. 55%
    #bf90f4
  7. 65%
    #cda9f7
  8. 75%
    #dbc1f9
  9. 85%
    #eadafb
  10. 95%
    #f8f3fe

Shades (mixed with black)

  1. 5%
    #6a08db
  2. 15%
    #5f07c4
  3. 25%
    #5406ad
  4. 35%
    #490596
  5. 45%
    #3e047f
  6. 55%
    #320468
  7. 65%
    #270351
  8. 75%
    #1c023a
  9. 85%
    #110123
  10. 95%
    #06000c

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, violet-700's complementary color is #636700 (close to darkolivegreen), its analogous colors are #0042F5 and #9D00B1, and its triadic partners are #9E4000 and #00755A. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#636700
Analogous−30°, +30°#0042f5#9d00b1
Triadic+120°, +240°#9e4000#00755a
Split-complementary+150°, +210°#815800#007800

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 violet-700 is a cool color: its hue is 268° 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#8a2be26.2
darkviolet#9400d38.4
darkorchid#9932cc10.5

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
purple-700#8200db4.4
violet-600#7f22fe5.1
violet-800#5d0ec07.0

Code snippets

Tailwind CSS
<div class="bg-violet-700 text-white">...</div>
<p class="text-violet-700 border-violet-700">...</p>
CSS
.element {
  color: var(--color-violet-700);
  background-color: oklch(49.1% 0.27 292.581);
  border-color: #7008e7;
  outline-color: rgb(112 8 231);
}
SwiftUI
import SwiftUI

extension Color {
  static let violet700 = Color(red: 0.439, green: 0.031, blue: 0.906)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const violet700 = Color(0xFF7008E7);
Android XML
<!-- res/values/colors.xml -->
<color name="violet_700">#7008E7</color>

Frequently asked questions

What is the hex code for Tailwind violet-700?
In Tailwind CSS v4, violet-700 is oklch(49.1% 0.27 292.581), which converts to #7008E7 (rgb(112, 8, 231)) in sRGB. In Tailwind v3 the same name was #6D28D9.
What is the difference between violet-700 in Tailwind v3 and v4?
v3 used the hex #6D28D9; v4 redefined the palette in OKLCH as oklch(49.1% 0.27 292.581). In v3, violet-700 was #6D28D9. The v4 value is ΔE OK 2.9 away; v4 is more saturated.
How do I use violet-700 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-violet-700). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on violet-700?
White text on violet-700 has a contrast ratio of 7.29:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.87:1 and fails AA even for large text. In APCA terms that is Lc −88.1 for white and Lc 21.0 for black.
Which CSS named color is closest to violet-700?
The closest is blueviolet (#8A2BE2) at ΔE OK 6.2, followed by darkviolet and darkorchid.

Last reviewed by Arielton Oberek.