Skip to content
PantoneTools
purple
Tailwind CSS palette

Violet 400

violet-400 · #A78BFA

HEX

#A78BFA

RGB

rgb(167, 139, 250)

CMYK

cmyk(33%, 44%, 0%, 2%)

HSL

hsl(255, 92%, 76%)

LAB

lab(64.6, 34.6, -51.9)

What is Violet 400?

Violet 400 is the violet-400 reference in the Tailwind CSS palette. Its sRGB value is #A78BFA (rgb 167, 139, 250). It sits in the purple family. The default color palette shipped with Tailwind CSS v3 by Tailwind Labs. 22 color families across 11 lightness steps (50 to 950). See disclaimer for accuracy and trademark notes.

Accessibility

WCAG 2.1 contrast checks for Violet 400 as a background.

Black text on this color

Sample text · 7.72 : 1
AA Normal
AA Large
AAA Normal
AAA Large

White text on this color

Sample text · 2.72 : 1
AA Normal
AA Large
AAA Normal
AAA Large

Shades, tints & tonal scale of Violet 400

An 11-step tonal scale derived from Violet 400 (#A78BFA). Click any swatch to copy its HEX. Use these as a starting point for design tokens, hover states, and disabled states in a design system.

Copied #F8F6FF

50

#F8F6FF

#F8F6FF

Copied #F1ECFE

100

#F1ECFE

#F1ECFE

Copied #E3DAFD

200

#E3DAFD

#E3DAFD

Copied #D3C5FD

300

#D3C5FD

#D3C5FD

Copied #BDA8FB

400

#BDA8FB

#BDA8FB

Copied #A78BFA

500

#A78BFA

#A78BFA

Copied #8E76D5

600

#8E76D5

#8E76D5

Copied #6D5AA3

700

#6D5AA3

#6D5AA3

Copied #4B3F71

800

#4B3F71

#4B3F71

Copied #2A233F

900

#2A233F

#2A233F

Copied #14111E

950

#14111E

#14111E

Lighter tints (mixed with white)

Copied #B8A4FB

15%

#B8A4FB

Copied #C7B8FC

30%

#C7B8FC

Copied #D5CAFC

45%

#D5CAFC

Copied #E1DAFD

60%

#E1DAFD

Copied #EDE9FE

75%

#EDE9FE

Darker shades (mixed with black)

Copied #9B81E9

15%

#9B81E9

Copied #8E76D6

30%

#8E76D6

Copied #7F69C0

45%

#7F69C0

Copied #6E5AA6

60%

#6E5AA6

Copied #584886

75%

#584886

Color harmonies for Violet 400

Classic color-theory harmonies derived from rotating the hue of Violet 400. Use these to build accent palettes, brand systems, and accessible UI color pairings.

Complementary

180° opposite — strongest contrast

Copied #A78BFA

#A78BFA

#A78BFA

Copied #DEFA89

#DEFA89

#DEFA89

Triadic

Three colors 120° apart

Copied #A78BFA

#A78BFA

#A78BFA

Copied #FAA689

#FAA689

#FAA689

Copied #89FAA6

#89FAA6

#89FAA6

Analogous

Two neighbors ±30° on the wheel

Copied #89A6FA

#89A6FA

#89A6FA

Copied #A78BFA

#A78BFA

#A78BFA

Copied #DE89FA

#DE89FA

#DE89FA

Split-complementary

Base + two colors flanking its complement

Copied #A78BFA

#A78BFA

#A78BFA

Copied #FADE89

#FADE89

#FADE89

Copied #A6FA89

#A6FA89

#A6FA89

Tetradic

Two complementary pairs

Copied #A78BFA

#A78BFA

#A78BFA

Copied #FA89DE

#FA89DE

#FA89DE

Copied #DEFA89

#DEFA89

#DEFA89

Copied #89FAA6

#89FAA6

#89FAA6

Square

Four colors evenly spaced 90° apart

Copied #A78BFA

#A78BFA

#A78BFA

Copied #FA89A6

#FA89A6

#FA89A6

Copied #DEFA89

#DEFA89

#DEFA89

Copied #89FADE

#89FADE

#89FADE

Violet 400 in every color space

Full conversion of Violet 400 across the color spaces designers and developers actually use — including OKLCH (the perceptually-uniform space that powers Tailwind v4 and CSS Color Module Level 4) and HWB.

HEX

#A78BFA

RGB

rgb(167, 139, 250)

CMYK

cmyk(33%, 44%, 0%, 2%)

HSL

hsl(255, 92%, 76%)

HSV

hsv(255, 44%, 98%)

HWB

hwb(255 55% 2%)

CIE Lab

lab(64.6 34.6 -51.9)

OKLCH

oklch(70.9% 0.159 293.5)

XYZ (D65)

xyz(42.42, 33.58, 94.67)

Copy-ready code for Violet 400

Drop-in snippets for CSS, Tailwind, Sass, iOS Swift, and Android XML. Click the copy button on any snippet to put it on your clipboard.

CSS

color: #A78BFA;
background-color: #A78BFA;

CSS variable

:root {
  --color-violet-400: #A78BFA;
}

Tailwind config

// tailwind.config.js
colors: {
  'violet-400': '#A78BFA',
}

Sass

$color-violet-400: #A78BFA;

Swift UIColor

UIColor(red: 0.655, green: 0.545, blue: 0.980, alpha: 1.0)

Android XML

<color name="violet-400">#A78BFA</color>

Closest match in every color system

The nearest Violet 400 equivalent in every other color system on this site, ranked by ΔE2000 perceptual distance. Useful when translating between design-system, web-standard, and industrial color references.

Closest in Tailwind CSS palette

Top 6 ΔE2000-closest entries within the same collection.

Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.

Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.

Copied #8F999F

RAL 7001

#8F999F

Silver grey

Copied #7E8B92

RAL 7000

#7E8B92

Squirrel grey

Copied #9DA1AA

RAL 7040

#9DA1AA

Window grey

Copied #9EA0A1

RAL 7004

#9EA0A1

Signal grey

Copied #606E8C

RAL 5014

#606E8C

Pigeon blue

Copied #3B83BD

RAL 5012

#3B83BD

Light blue

FAQ about Violet 400

What is the HEX code for Violet 400?

Violet 400 (violet-400) has the HEX code #A78BFA. In RGB it is rgb(167, 139, 250), and in CMYK it is cmyk(33%, 44%, 0%, 2%).

What is the OKLCH value of Violet 400?

Violet 400 converts to oklch(0.709 0.159 293.5). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.

Is Violet 400 accessible for body text?

Used as a background, Violet 400 has a contrast ratio of 7.72:1 with black text and 2.72:1 with white text. WCAG 2.1 AA requires 4.5:1 for normal text. The current recommendation is to use black text and verify in real UI context.

What is the closest Pantone to Violet 400?

The closest Pantone reference to Violet 400 by ΔE2000 perceptual distance is Pantone 270 C (#A696D4). Cross-system Pantone matching is approximate; for color-critical print work, verify with a physical Pantone guide.

What is the closest RAL color to Violet 400?

The closest RAL Classic reference to Violet 400 by ΔE2000 distance is RAL 7001 (Silver grey, #8F999F). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.

What is the complementary color of Violet 400?

The complementary color (180° opposite on the HSL color wheel) of Violet 400 is #DEFA89. Use it for high-contrast accents, error states, or call-to-action pairings.

Data provenance & source

Tailwind CSS default palette (v3)

The default color palette shipped with Tailwind CSS v3 by Tailwind Labs Inc. Use as a reference for design tokens, web color systems, and Tailwind-based design conversations. Names like 'blue-500' are the project's own naming convention.

Source type
derived
Confidence
high
License
MIT
Last reviewed
2026-05-24

Workflow tags

tailwind
design-token
web-system
purple

Tailwind palette values are designed for digital interfaces under sRGB. For print, convert to a process-appropriate value and proof against the substrate; do not rely on sRGB CMYK conversion for color-critical print work.

Tailwind CSS palette · Violet 400 — #A78BFA | PantoneTools