Color Values
- HEX
- #374151
- RGB
- rgb(55, 65, 81)
- HSL
- hsl(217, 19%, 27%)
- OKLCH
- oklch(0.373 0.031 260)
- CMYK
- cmyk(32%, 20%, 0%, 68%)
- CSS Variable
- var(--color-gray-700)
- Tailwind Class
- bg-gray-700
Accessibility Score
Good
Based on WCAG 2.1 contrast ratios against white and black backgrounds.
On White
10.31:1
On Black
2.04:1
Tailwind Usage — All Utilities
Background
bg-gray-700Text
text-gray-700Border
border-gray-700Ring
ring-gray-700Outline
outline-gray-700Fill
fill-gray-700Stroke
stroke-gray-700From (gradient)
from-gray-700Via (gradient)
via-gray-700To (gradient)
to-gray-700Placeholder
placeholder-gray-700Caret
caret-gray-700Accent
accent-gray-700Decoration
decoration-gray-700Shadow Color
shadow-gray-700Tailwind v3 Config (extend custom color)
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'gray-700': '#374151',
},
},
},
};CSS Equivalent
/* Hex */
background-color: #374151;
/* RGB */
background-color: rgb(55, 65, 81);
/* HSL */
background-color: hsl(217, 19%, 27%);
/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.373 0.031 260);
/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-gray-700);
/* Gradient example */
background: linear-gradient(135deg, #f9fafb 0%, #1f2937 100%);OKLCH — Modern Color Space
Lightness (L)
0.373
37% perceived brightness
Chroma (C)
0.031
Color intensity / saturation
Hue (H)
260°
Angle on perceptual hue wheel
oklch(0.373 0.031 260)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
Dark accent & pressed state
Shade 700 of the Gray palette
Recommended Uses
- ✓Pressed/active button states
- ✓Text links on white
- ✓Dark-mode primary buttons
- ✓Table headers
- ✓Strong UI accents
Avoid
Preview
On White
Aa Bb Cc
On Black
Aa Bb Cc
As Background
Aa Bb Cc — #374151
Similar Tailwind Colors
Perceptually close shades from other Tailwind color families.
Nearest Named Color
Tailwind Gray 700
Nearest Tailwind equivalent — #374151
Frequently Asked Questions
- What is the hex code for Tailwind Gray 700?
- Tailwind Gray 700 has the hex code #374151. Its RGB value is rgb(55, 65, 81) and its HSL value is hsl(217, 19%, 27%).
- What Tailwind utility classes use Gray 700?
- Use bg-gray-700 for backgrounds, text-gray-700 for text color, border-gray-700 for borders, and ring-gray-700 for focus rings. In Tailwind v4 the CSS variable var(--color-gray-700) is available natively.
- Is Tailwind Gray 700 WCAG accessible?
- Tailwind Gray 700 achieves a 10.31:1 contrast ratio on white (AAA) and 2.04:1 on black (Fail). Its overall accessibility score is 60/100 (Good).
- What is the OKLCH value for Tailwind Gray 700?
- Tailwind Gray 700 in OKLCH is oklch(0.373 0.031 260) — lightness 0.373, chroma 0.031, hue 260°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
- What is Tailwind Gray 700 used for?
- At shade 700, Tailwind Gray 700 is best described as "Dark accent & pressed state". Recommended uses: Pressed/active button states, Text links on white, Dark-mode primary buttons.