Color Values
- HEX
- #D4D4D8
- RGB
- rgb(212, 212, 216)
- HSL
- hsl(240, 5%, 84%)
- OKLCH
- oklch(0.871 0.005 286)
- CMYK
- cmyk(2%, 2%, 0%, 15%)
- CSS Variable
- var(--color-zinc-300)
- Tailwind Class
- bg-zinc-300
Accessibility Score
Good
Based on WCAG 2.1 contrast ratios against white and black backgrounds.
On White
1.48:1
On Black
14.21:1
Tailwind Usage — All Utilities
Background
bg-zinc-300Text
text-zinc-300Border
border-zinc-300Ring
ring-zinc-300Outline
outline-zinc-300Fill
fill-zinc-300Stroke
stroke-zinc-300From (gradient)
from-zinc-300Via (gradient)
via-zinc-300To (gradient)
to-zinc-300Placeholder
placeholder-zinc-300Caret
caret-zinc-300Accent
accent-zinc-300Decoration
decoration-zinc-300Shadow Color
shadow-zinc-300Tailwind v3 Config (extend custom color)
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'zinc-300': '#d4d4d8',
},
},
},
};CSS Equivalent
/* Hex */
background-color: #D4D4D8;
/* RGB */
background-color: rgb(212, 212, 216);
/* HSL */
background-color: hsl(240, 5%, 84%);
/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.871 0.005 286);
/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-zinc-300);
/* Gradient example */
background: linear-gradient(135deg, #fafafa 0%, #a1a1aa 100%);OKLCH — Modern Color Space
Lightness (L)
0.871
87% perceived brightness
Chroma (C)
0.005
Color intensity / saturation
Hue (H)
286°
Angle on perceptual hue wheel
oklch(0.871 0.005 286)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
Light mid-tone accent
Shade 300 of the Zinc palette
Recommended Uses
- ✓Secondary button outlines
- ✓Icon strokes on dark backgrounds
- ✓Progress bar fills
- ✓Selected state highlights
Avoid
Preview
On White
Aa Bb Cc
On Black
Aa Bb Cc
As Background
Aa Bb Cc — #D4D4D8
Similar Tailwind Colors
Perceptually close shades from other Tailwind color families.
Nearest Named Color
Tailwind Zinc 300
Nearest Tailwind equivalent — #D4D4D8
Frequently Asked Questions
- What is the hex code for Tailwind Zinc 300?
- Tailwind Zinc 300 has the hex code #D4D4D8. Its RGB value is rgb(212, 212, 216) and its HSL value is hsl(240, 5%, 84%).
- What Tailwind utility classes use Zinc 300?
- Use bg-zinc-300 for backgrounds, text-zinc-300 for text color, border-zinc-300 for borders, and ring-zinc-300 for focus rings. In Tailwind v4 the CSS variable var(--color-zinc-300) is available natively.
- Is Tailwind Zinc 300 WCAG accessible?
- Tailwind Zinc 300 achieves a 1.48:1 contrast ratio on white (Fail) and 14.21:1 on black (AAA). Its overall accessibility score is 60/100 (Good).
- What is the OKLCH value for Tailwind Zinc 300?
- Tailwind Zinc 300 in OKLCH is oklch(0.871 0.005 286) — lightness 0.871, chroma 0.005, hue 286°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
- What is Tailwind Zinc 300 used for?
- At shade 300, Tailwind Zinc 300 is best described as "Light mid-tone accent". Recommended uses: Secondary button outlines, Icon strokes on dark backgrounds, Progress bar fills.