Skip to main content

bg-violet-50

Tailwind Violet 50

#F5F3FF·Violet family·Shade 50

Color Values

HEX
#F5F3FF
RGB
rgb(245, 243, 255)
HSL
hsl(250, 100%, 98%)
OKLCH
oklch(0.969 0.016 294)
CMYK
cmyk(4%, 5%, 0%, 0%)
CSS Variable
var(--color-violet-50)
Tailwind Class
bg-violet-50

Accessibility Score

60/100

Good

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

On White

1.1:1

Fail

On Black

19.15:1

AAA
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-violet-50

Text

text-violet-50

Border

border-violet-50

Ring

ring-violet-50

Outline

outline-violet-50

Fill

fill-violet-50

Stroke

stroke-violet-50

From (gradient)

from-violet-50

Via (gradient)

via-violet-50

To (gradient)

to-violet-50

Placeholder

placeholder-violet-50

Caret

caret-violet-50

Accent

accent-violet-50

Decoration

decoration-violet-50

Shadow Color

shadow-violet-50

Tailwind v3 Config (extend custom color)

// tailwind.config.js module.exports = { theme: { extend: { colors: { 'violet-50': '#f5f3ff', }, }, }, };

CSS Equivalent

/* Hex */
background-color: #F5F3FF;

/* RGB */
background-color: rgb(245, 243, 255);

/* HSL */
background-color: hsl(250, 100%, 98%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.969 0.016 294);

/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-violet-50);

/* Gradient example */
background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);

OKLCH — Modern Color Space

Lightness (L)

0.969

97% perceived brightness

Chroma (C)

0.016

Color intensity / saturation

Hue (H)

294°

Angle on perceptual hue wheel

oklch(0.969 0.016 294)

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

Ultra-light background tint

Shade 50 of the Violet palette

Recommended Uses

  • Page backgrounds
  • Subtle section fills
  • Notification banners
  • Hover state backgrounds
  • Table row alternates

Avoid

Text on white — contrast is too low for readability.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #F5F3FF

Frequently Asked Questions

What is the hex code for Tailwind Violet 50?
Tailwind Violet 50 has the hex code #F5F3FF. Its RGB value is rgb(245, 243, 255) and its HSL value is hsl(250, 100%, 98%).
What Tailwind utility classes use Violet 50?
Use bg-violet-50 for backgrounds, text-violet-50 for text color, border-violet-50 for borders, and ring-violet-50 for focus rings. In Tailwind v4 the CSS variable var(--color-violet-50) is available natively.
Is Tailwind Violet 50 WCAG accessible?
Tailwind Violet 50 achieves a 1.1:1 contrast ratio on white (Fail) and 19.15:1 on black (AAA). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Violet 50?
Tailwind Violet 50 in OKLCH is oklch(0.969 0.016 294) — lightness 0.969, chroma 0.016, hue 294°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Violet 50 used for?
At shade 50, Tailwind Violet 50 is best described as "Ultra-light background tint". Recommended uses: Page backgrounds, Subtle section fills, Notification banners.