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