Skip to main content

bg-purple-950

Tailwind Purple 950

#3B0764·Purple family·Shade 950

Color Values

HEX
#3B0764
RGB
rgb(59, 7, 100)
HSL
hsl(274, 87%, 21%)
OKLCH
oklch(0.291 0.143 303)
CMYK
cmyk(41%, 93%, 0%, 61%)
CSS Variable
var(--color-purple-950)
Tailwind Class
bg-purple-950

Accessibility Score

60/100

Good

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

On White

15:1

AAA

On Black

1.4:1

Fail
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-purple-950

Text

text-purple-950

Border

border-purple-950

Ring

ring-purple-950

Outline

outline-purple-950

Fill

fill-purple-950

Stroke

stroke-purple-950

From (gradient)

from-purple-950

Via (gradient)

via-purple-950

To (gradient)

to-purple-950

Placeholder

placeholder-purple-950

Caret

caret-purple-950

Accent

accent-purple-950

Decoration

decoration-purple-950

Shadow Color

shadow-purple-950

Tailwind v3 Config (extend custom color)

// tailwind.config.js module.exports = { theme: { extend: { colors: { 'purple-950': '#3b0764', }, }, }, };

CSS Equivalent

/* Hex */
background-color: #3B0764;

/* RGB */
background-color: rgb(59, 7, 100);

/* HSL */
background-color: hsl(274, 87%, 21%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.291 0.143 303);

/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-purple-950);

/* Gradient example */
background: linear-gradient(135deg, #faf5ff 0%, #3b0764 100%);

OKLCH — Modern Color Space

Lightness (L)

0.291

29% perceived brightness

Chroma (C)

0.143

Color intensity / saturation

Hue (H)

303°

Angle on perceptual hue wheel

oklch(0.291 0.143 303)

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-dark near-black variant

Shade 950 of the Purple palette

Recommended Uses

  • Maximum-contrast text on white
  • Rich dark card backgrounds
  • Dark theme page backgrounds
  • Tinted near-black UI surfaces

Avoid

On dark or dark-gray backgrounds — near-zero contrast.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #3B0764

Frequently Asked Questions

What is the hex code for Tailwind Purple 950?
Tailwind Purple 950 has the hex code #3B0764. Its RGB value is rgb(59, 7, 100) and its HSL value is hsl(274, 87%, 21%).
What Tailwind utility classes use Purple 950?
Use bg-purple-950 for backgrounds, text-purple-950 for text color, border-purple-950 for borders, and ring-purple-950 for focus rings. In Tailwind v4 the CSS variable var(--color-purple-950) is available natively.
Is Tailwind Purple 950 WCAG accessible?
Tailwind Purple 950 achieves a 15:1 contrast ratio on white (AAA) and 1.4:1 on black (Fail). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Purple 950?
Tailwind Purple 950 in OKLCH is oklch(0.291 0.143 303) — lightness 0.291, chroma 0.143, hue 303°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Purple 950 used for?
At shade 950, Tailwind Purple 950 is best described as "Ultra-dark near-black variant". Recommended uses: Maximum-contrast text on white, Rich dark card backgrounds, Dark theme page backgrounds.