Tailwind CSS v4 default palette
Tailwind orange-300: #FFB86A
In Tailwind CSS v4, orange-300 is defined as --color-orange-300: oklch(83.7% 0.128 66.29), which is #FFB86A in hex and rgb(255, 184, 106): a very light, moderately saturated orange. In Tailwind v3, orange-300 was #FDBA74.
In OKLCH, orange-300 has a lightness of 83.7%, chroma 0.128 and hue 66.3°.
This OKLCH value lies outside sRGB. The hex #FFB86A 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.968 0.7343 0.4642).
In v3, orange-300 was #FDBA74. The v4 value is ΔE OK 1.1 away, below the point where most people can tell them apart; v4 is more saturated.
Tailwind orange runs from a pale peach at 50 to a deep burnt orange at 950, with its highest chroma at 600.
Color codes for orange-300
| Tailwind v4 token | --color-orange-300 |
|---|---|
| OKLCH (source value) | oklch(83.7% 0.128 66.29) |
| HEX | #FFB86A |
| RGB | rgb(255, 184, 106) |
| HSL | hsl(31, 100%, 71%) |
| HWB | hwb(31 42% 0%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 28%, 58%, 0%) |
| Decimal | 16,758,890 |
| Display P3 | color(display-p3 0.968 0.7343 0.4642) |
| Tailwind v3 hex | #FDBA74 |
| Utility classes | bg-orange-300, text-orange-300, border-orange-300 |
Tailwind orange scale
Contrast and accessibility
On orange-300, black text has a contrast ratio of 12.31:1 and passes AAA at any text size; white text reaches 1.70: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 orange-300 | 12.31:1 | Pass | Pass | Pass | Pass | 73.5 |
| White text on orange-300 | 1.70:1 | Fail | Fail | Fail | Fail | −34.2 |
| Orange-300 text on white | 1.70:1 | Fail | Fail | Fail | Fail | 30.4 |
| Orange-300 text on black | 12.31:1 | Pass | Pass | Pass | Pass | −72.4 |
Tints and shades
Each step mixes var(--color-orange-300) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-orange-300), white 25%) in CSS.
Tints (mixed with white)
- 5%
#ffbc71 - 15%
#ffc380 - 25%
#ffca8f - 35%
#ffd19e - 45%
#ffd8ad - 55%
#ffdfbc - 65%
#ffe6cb - 75%
#ffedda - 85%
#fff4e9 - 95%
#fffbf8
Shades (mixed with black)
- 5%
#f2af65 - 15%
#d99c5a - 25%
#bf8a50 - 35%
#a67845 - 45%
#8c653a - 55%
#735330 - 65%
#594025 - 75%
#402e1b - 85%
#261c10 - 95%
#0d0905
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, orange-300's complementary color is #8DD1FF (close to lightskyblue), its analogous colors are #FFAE94 and #E2C960, and its triadic partners are #4BE4D6 and #DFB3FF. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #8dd1ff |
| Analogous | −30°, +30° | #ffae94#e2c960 |
| Triadic | +120°, +240° | #4be4d6#dfb3ff |
| Split-complementary | +150°, +210° | #4edeff#b7c4ff |
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 orange-300 is a warm color: its hue is 31° 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
| Color | HEX | ΔE OK |
|---|---|---|
| sandybrown | #f4a460 | 5.5 |
| burlywood | #deb887 | 6.1 |
| orange | #ffa500 | 6.3 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| amber-400 | #ffba00 | 7.9 |
| orange-200 | #ffd6a7 | 8.3 |
| amber-300 | #ffd230 | 8.7 |
Code snippets
<div class="bg-orange-300 text-black">...</div>
<p class="text-orange-300 border-orange-300">...</p>.element {
color: var(--color-orange-300);
background-color: oklch(83.7% 0.128 66.29);
border-color: #ffb86a;
outline-color: rgb(255 184 106);
}import SwiftUI
extension Color {
static let orange300 = Color(red: 1.000, green: 0.722, blue: 0.416)
}import androidx.compose.ui.graphics.Color
val Orange300 = Color(0xFFFFB86A)import 'package:flutter/material.dart';
const orange300 = Color(0xFFFFB86A);<!-- res/values/colors.xml -->
<color name="orange_300">#FFB86A</color>Frequently asked questions
- What is the hex code for Tailwind orange-300?
- In Tailwind CSS v4, orange-300 is oklch(83.7% 0.128 66.29), which converts to #FFB86A (rgb(255, 184, 106)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #FDBA74.
- What is the difference between orange-300 in Tailwind v3 and v4?
- v3 used the hex #FDBA74; v4 redefined the palette in OKLCH as oklch(83.7% 0.128 66.29). In v3, orange-300 was #FDBA74. The v4 value is ΔE OK 1.1 away, below the point where most people can tell them apart; v4 is more saturated.
- How do I use orange-300 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-orange-300). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on orange-300?
- White text on orange-300 has a contrast ratio of 1.70:1, which fails AA even for large text under WCAG 2.2. Black text reaches 12.31:1 and passes both AA and AAA. In APCA terms that is Lc −34.2 for white and Lc 73.5 for black.
- Which CSS named color is closest to orange-300?
- The closest is sandybrown (#F4A460) at ΔE OK 5.5, followed by burlywood and orange.
Last reviewed by Arielton Oberek.