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