Skip to main content

bg-purple-300

Tailwind Purple 300

#D8B4FE·Purple family·Shade 300

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

60/100

Good

Based on WCAG 2.1 contrast ratios against white and black backgrounds.

On White

1.77:1

Fail

On Black

11.88:1

AAA
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-purple-300

Text

text-purple-300

Border

border-purple-300

Ring

ring-purple-300

Outline

outline-purple-300

Fill

fill-purple-300

Stroke

stroke-purple-300

From (gradient)

from-purple-300

Via (gradient)

via-purple-300

To (gradient)

to-purple-300

Placeholder

placeholder-purple-300

Caret

caret-purple-300

Accent

accent-purple-300

Decoration

decoration-purple-300

Shadow Color

shadow-purple-300

Tailwind 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

Normal-size text on white — generally below WCAG AA threshold.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #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.