Color Values
- HEX
- #7F1D1D
- RGB
- rgb(127, 29, 29)
- HSL
- hsl(0, 63%, 31%)
- OKLCH
- oklch(0.396 0.133 26)
- CMYK
- cmyk(0%, 77%, 77%, 50%)
- CSS Variable
- var(--color-red-900)
- Tailwind Class
- bg-red-900
Accessibility Score
Good
Based on WCAG 2.1 contrast ratios against white and black backgrounds.
On White
10.02:1
On Black
2.1:1
Tailwind Usage — All Utilities
Background
bg-red-900Text
text-red-900Border
border-red-900Ring
ring-red-900Outline
outline-red-900Fill
fill-red-900Stroke
stroke-red-900From (gradient)
from-red-900Via (gradient)
via-red-900To (gradient)
to-red-900Placeholder
placeholder-red-900Caret
caret-red-900Accent
accent-red-900Decoration
decoration-red-900Shadow Color
shadow-red-900Tailwind v3 Config (extend custom color)
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'red-900': '#7f1d1d',
},
},
},
};CSS Equivalent
/* Hex */
background-color: #7F1D1D;
/* RGB */
background-color: rgb(127, 29, 29);
/* HSL */
background-color: hsl(0, 63%, 31%);
/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.396 0.133 26);
/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-red-900);
/* Gradient example */
background: linear-gradient(135deg, #fef2f2 0%, #450a0a 100%);OKLCH — Modern Color Space
Lightness (L)
0.396
40% perceived brightness
Chroma (C)
0.133
Color intensity / saturation
Hue (H)
26°
Angle on perceptual hue wheel
oklch(0.396 0.133 26)OKLCH is a perceptually uniform color space in CSS Color Level 4. Unlike HSL, equal steps in L produce equal perceived lightness changes — making it ideal for building accessible, harmonious design system scales.
Design Recommendations
Strong dark tone
Shade 900 of the Red palette
Recommended Uses
- ✓Body text on white
- ✓Dark panel backgrounds
- ✓Near-dark UI elements
- ✓Footer backgrounds
- ✓High-contrast headings
Avoid
Preview
On White
Aa Bb Cc
On Black
Aa Bb Cc
As Background
Aa Bb Cc — #7F1D1D
Similar Tailwind Colors
Perceptually close shades from other Tailwind color families.
Nearest Named Color
Tailwind Red 900
Nearest Tailwind equivalent — #7F1D1D
Frequently Asked Questions
- What is the hex code for Tailwind Red 900?
- Tailwind Red 900 has the hex code #7F1D1D. Its RGB value is rgb(127, 29, 29) and its HSL value is hsl(0, 63%, 31%).
- What Tailwind utility classes use Red 900?
- Use bg-red-900 for backgrounds, text-red-900 for text color, border-red-900 for borders, and ring-red-900 for focus rings. In Tailwind v4 the CSS variable var(--color-red-900) is available natively.
- Is Tailwind Red 900 WCAG accessible?
- Tailwind Red 900 achieves a 10.02:1 contrast ratio on white (AAA) and 2.1:1 on black (Fail). Its overall accessibility score is 60/100 (Good).
- What is the OKLCH value for Tailwind Red 900?
- Tailwind Red 900 in OKLCH is oklch(0.396 0.133 26) — lightness 0.396, chroma 0.133, hue 26°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
- What is Tailwind Red 900 used for?
- At shade 900, Tailwind Red 900 is best described as "Strong dark tone". Recommended uses: Body text on white, Dark panel backgrounds, Near-dark UI elements.