Skip to content

Tailwind CSS v4 default palette

Tailwind indigo-500: #615FFF

In Tailwind CSS v4, indigo-500 is defined as --color-indigo-500: oklch(58.5% 0.233 277.117), which is #615FFF in hex and rgb(97, 95, 255): a medium, vivid blue. In Tailwind v3, indigo-500 was #6366F1.

indigo-500#615FFF

In OKLCH, indigo-500 has a lightness of 58.5%, chroma 0.233 and hue 277.1°.

This OKLCH value lies outside sRGB. The hex #615FFF 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.3804 0.3722 0.9717).

In v3, indigo-500 was #6366F1. The v4 value is ΔE OK 2.9 away; v4 is more saturated.

Tailwind indigo is a blue-violet and the accent color in many Tailwind UI examples and early Tailwind templates.

Color codes for indigo-500

Color codes for indigo-500
Tailwind v4 token--color-indigo-500
OKLCH (source value)oklch(58.5% 0.233 277.117)
HEX#615FFF
RGBrgb(97, 95, 255)
HSLhsl(241, 100%, 69%)
HWBhwb(241 37% 0%)
CMYK (naive, no ICC profile)cmyk(62%, 63%, 0%, 0%)
Decimal6,381,567
Display P3color(display-p3 0.3804 0.3722 0.9717)
Tailwind v3 hex#6366F1
Utility classesbg-indigo-500, text-indigo-500, border-indigo-500

Tailwind indigo scale

Contrast and accessibility

On indigo-500, black text has a contrast ratio of 4.58:1 and passes AA for normal text; white text reaches 4.57: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 indigo-5004.58:1PassPassFailPass32.9
White text on indigo-5004.57:1PassPassFailPass−76.7
Indigo-500 text on white4.57:1PassPassFailPass71.2
Indigo-500 text on black4.58:1PassPassFailPass−30.5

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #6967ff
  2. 15%
    #7977ff
  3. 25%
    #8987ff
  4. 35%
    #9897ff
  5. 45%
    #a8a7ff
  6. 55%
    #b8b7ff
  7. 65%
    #c8c7ff
  8. 75%
    #d8d7ff
  9. 85%
    #e7e7ff
  10. 95%
    #f7f7ff

Shades (mixed with black)

  1. 5%
    #5c5af2
  2. 15%
    #5251d9
  3. 25%
    #4947bf
  4. 35%
    #3f3ea6
  5. 45%
    #35348c
  6. 55%
    #2c2b73
  7. 65%
    #222159
  8. 75%
    #181840
  9. 85%
    #0f0e26
  10. 95%
    #05050d

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, indigo-500's complementary color is #937A00 (close to olive), its analogous colors are #007FE3 and #A143E4, and its triadic partners are #E12900 and #009752. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#937a00
Analogous−30°, +30°#007fe3#a143e4
Triadic+120°, +240°#e12900#009752
Split-complementary+150°, +210°#b56600#5f8d00

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 indigo-500 is a cool color: its hue is 241° 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
mediumslateblue#7b68ee5.4
royalblue#4169e16.5
slateblue#6a5acd8.0

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
violet-500#8e51ff7.1
blue-600#155dfc7.2
indigo-600#4f39f67.9

Code snippets

Tailwind CSS
<div class="bg-indigo-500 text-black">...</div>
<p class="text-indigo-500 border-indigo-500">...</p>
CSS
.element {
  color: var(--color-indigo-500);
  background-color: oklch(58.5% 0.233 277.117);
  border-color: #615fff;
  outline-color: rgb(97 95 255);
}
SwiftUI
import SwiftUI

extension Color {
  static let indigo500 = Color(red: 0.380, green: 0.373, blue: 1.000)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const indigo500 = Color(0xFF615FFF);
Android XML
<!-- res/values/colors.xml -->
<color name="indigo_500">#615FFF</color>

Frequently asked questions

What is the hex code for Tailwind indigo-500?
In Tailwind CSS v4, indigo-500 is oklch(58.5% 0.233 277.117), which converts to #615FFF (rgb(97, 95, 255)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #6366F1.
What is the difference between indigo-500 in Tailwind v3 and v4?
v3 used the hex #6366F1; v4 redefined the palette in OKLCH as oklch(58.5% 0.233 277.117). In v3, indigo-500 was #6366F1. The v4 value is ΔE OK 2.9 away; v4 is more saturated.
How do I use indigo-500 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-indigo-500). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on indigo-500?
White text on indigo-500 has a contrast ratio of 4.57:1, which passes AA for normal text but not AAA under WCAG 2.2. Black text reaches 4.58:1 and passes AA for normal text but not AAA. In APCA terms that is Lc −76.7 for white and Lc 32.9 for black.
Which CSS named color is closest to indigo-500?
The closest is mediumslateblue (#7B68EE) at ΔE OK 5.4, followed by royalblue and slateblue.

Last reviewed by Arielton Oberek.