Skip to content

#804cd2

a balanced, vivid violet · cool · closest name: Slate Blue

RGB
128, 76, 210
HSL
263°, 60%, 56%
CMYK
39, 64, 0, 18
Luminance
0.1441

At a glance

Every number on this page in one read: what #804cd2 is made of, how bright it looks, and which way it leans.

Hex
#804cd2
Hue
263°
violet
Saturation
60%
vivid
Lightness
56%
balanced
Brightness
82%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1441
WCAG relative
Temperature
Cool
70/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
5.41:1
Closest name
Slate Blue
ΔE2000 5.6
Where it sits
Hue263° of 360°
Saturation60%
Lightness56%
Temperature
Warm ← → Cool70% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#804cd2
RGBrgb(128, 76, 210)
HSLhsl(263, 60%, 56%)
CMYKcmyk(39%, 64%, 0%, 18%)
LABlab(44.8 50.0 -61.4)
LCHlch(44.8 79.1 309.1)
OKLCHoklch(0.546 0.197 297.3)
Decimal8408274
Display P3color(display-p3 0.502 0.298 0.824)

Copy-ready code

/* CSS */
color: #804cd2;
background-color: #804cd2;
/* Tailwind (arbitrary) */
class="text-[#804cd2] bg-[#804cd2]"
/* SCSS */
$brand: #804cd2;
/* SwiftUI */
Color(red: 0.502, green: 0.298, blue: 0.824)
/* Android */
Color.parseColor("#804cd2")
/* Flutter */
Color(0xFF804CD2)
/* Python / OpenCV (BGR) */
(210, 76, 128)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #804cd2 · 5.41:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.41:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.88:1
AA fail · AA large pass · AAA fail
Reading the other direction: #804cd2 as text scores 5.41:1 on white and 3.88:1 on black.

Accessibility — WCAG contrast

Aa
#804cd2 on white: 5.41:1
AA ✓ pass · AA-large · AAA
Aa
#804cd2 on black: 3.88:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006AD6
deuteranopia · #0068CF
tritanopia · #6C6A88

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #804cd2 is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F7F4FB
#EEE9F7
#DACCEF
#BFA5E8
#A079DD
#804cd2
#6A31C4
#5829A3
#472182
#361C5F
#22113B
Base = 500Lightest = 50 · #F7F4FBDarkest = 950 · #22113B
:root {
  --brand-50: #F7F4FB;
  --brand-100: #EEE9F7;
  --brand-200: #DACCEF;
  --brand-300: #BFA5E8;
  --brand-400: #A079DD;
  --brand-500: #804cd2;
  --brand-600: #6A31C4;
  --brand-700: #5829A3;
  --brand-800: #472182;
  --brand-900: #361C5F;
  --brand-950: #22113B;
  --brand: #804cd2;
  --brand-ink: #ffffff;
}

Colors that work with #804cd2

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F7F4FA
Tinted page background
Border#D1C0ED
Hairlines and dividers
Muted text#6A4B9B
Captions on the surface
Accent#95A725
Second voice, not a rival
Dark variant#371A66
Hover, pressed, headers
Light variant#F1EBFA
Selected rows, tints
Dark surface#1A1424
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #804cd2

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#9ED24C
Analogous left#4C5BD2
Analogous right#C34CD2
Split-complement 1#D2C34C
Split-complement 2#5BD24C
Triadic 1#D2804C
Triadic 2#4CD280
Tetradic#D24C5B

RGB percentages

Red50.2%
Green29.8%
Blue82.4%

CMYK percentages

Cyan39.0%
Magenta63.8%
Yellow0.0%
Key (black)17.6%

Color previews

#804cd2 text on a black background

contrast 3.88:1

Card sample

#804cd2 text on a white background

contrast 5.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #804cd2;
Background color
Panel with #804cd2 background
background-color: #804cd2;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #804cd2;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(128, 76, 210, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(128, 76, 210, 0.45);
Border & gradient
Gradient panel
border: 3px solid #804cd2;
background: linear-gradient(135deg, #804cd2, #D24CCB);

Monochromatic scale

Palettes built from #804cd2

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#804cd2 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#804cd2, answered

What color is #804cd2?

#804cd2 is a balanced vivid violet, closest to Slate Blue (ΔE2000 5.6). It sits at 263° on the hue wheel with 60% saturation and 56% lightness, which reads as cool.

What is the RGB value of #804cd2?

rgb(128, 76, 210) — 128 red, 76 green and 210 blue out of 255, or 50.2% / 29.8% / 82.4% by channel.

Is #804cd2 a light or a dark color?

It is a dark color. Relative luminance is 0.1441 and perceived brightness is 45%, so white text on it reaches 5.41:1.

Should I use black or white text on #804cd2?

White. It scores 5.41:1 against #804cd2, versus 3.88:1 for black — AA at any size.

What is the complementary color of #804cd2?

#9ED24C sits directly opposite on the wheel. Softer options are the split-complements #D2C34C and #5BD24C, which give the same contrast with far less vibration.

What colors go well with #804cd2?

For interface work: #F7F4FA as the surface, #D1C0ED for borders, #6A4B9B for secondary text, #95A725 as an accent and #371A66 for hover and pressed states. For a palette, the analogous pair #4C5BD2 and #C34CD2 stays calm, while #9ED24C is the loudest partner.

What is #804cd2 in CMYK for printing?

cmyk(39%, 64%, 0%, 18%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #804cd2 warm or cool?

Cool — it scores 70 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B14CD2; nudged cooler, #4D4AD4.

Work with #804cd2 in the Color Lab