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.
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
| Tailwind v4 token | --color-violet-700 |
|---|---|
| OKLCH (source value) | oklch(49.1% 0.27 292.581) |
| HEX | #7008E7 |
| RGB | rgb(112, 8, 231) |
| HSL | hsl(268, 93%, 47%) |
| HWB | hwb(268 3% 9%) |
| CMYK (naive, no ICC profile) | cmyk(52%, 97%, 0%, 9%) |
| Decimal | 7,342,311 |
| Tailwind v3 hex | #6D28D9 |
| Utility classes | bg-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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on violet-700 | 2.87:1 | Fail | Fail | Fail | Fail | 21.0 |
| White text on violet-700 | 7.29:1 | Pass | Pass | Pass | Pass | −88.1 |
| Violet-700 text on white | 7.29:1 | Pass | Pass | Pass | Pass | 83.0 |
| Violet-700 text on black | 2.87:1 | Fail | Fail | Fail | Fail | −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)
- 5%
#7714e8 - 15%
#852deb - 25%
#9446ed - 35%
#a25eef - 45%
#b077f2 - 55%
#bf90f4 - 65%
#cda9f7 - 75%
#dbc1f9 - 85%
#eadafb - 95%
#f8f3fe
Shades (mixed with black)
- 5%
#6a08db - 15%
#5f07c4 - 25%
#5406ad - 35%
#490596 - 45%
#3e047f - 55%
#320468 - 65%
#270351 - 75%
#1c023a - 85%
#110123 - 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.
| Harmony | Rotation | Color |
|---|---|---|
| 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
| Color | HEX | ΔE OK |
|---|---|---|
| blueviolet | #8a2be2 | 6.2 |
| darkviolet | #9400d3 | 8.4 |
| darkorchid | #9932cc | 10.5 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| purple-700 | #8200db | 4.4 |
| violet-600 | #7f22fe | 5.1 |
| violet-800 | #5d0ec0 | 7.0 |
Code snippets
<div class="bg-violet-700 text-white">...</div>
<p class="text-violet-700 border-violet-700">...</p>.element {
color: var(--color-violet-700);
background-color: oklch(49.1% 0.27 292.581);
border-color: #7008e7;
outline-color: rgb(112 8 231);
}import SwiftUI
extension Color {
static let violet700 = Color(red: 0.439, green: 0.031, blue: 0.906)
}import androidx.compose.ui.graphics.Color
val Violet700 = Color(0xFF7008E7)import 'package:flutter/material.dart';
const violet700 = Color(0xFF7008E7);<!-- 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.