#804cd2
a balanced, vivid violet · cool · closest name: Slate Blue
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.
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 |
| RGB | rgb(128, 76, 210) |
| HSL | hsl(263, 60%, 56%) |
| CMYK | cmyk(39%, 64%, 0%, 18%) |
| LAB | lab(44.8 50.0 -61.4) |
| LCH | lch(44.8 79.1 309.1) |
| OKLCH | oklch(0.546 0.197 297.3) |
| Decimal | 8408274 |
| Display P3 | color(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.
Accessibility — WCAG contrast
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.
: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.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #804cd2
Derived from its contrast, chroma and lightness — not from taste.
- ✓Body text and links on white
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Brand accents, badges and data highlights
- ⚠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 | Directly opposite — maximum tension | |
| Analogous left | #4C5BD2 | Neighbour, quieter | |
| Analogous right | #C34CD2 | Neighbour, quieter | |
| Split-complement 1 | #D2C34C | Contrast without the clash | |
| Split-complement 2 | #5BD24C | Contrast without the clash | |
| Triadic 1 | #D2804C | Even thirds — balanced and loud | |
| Triadic 2 | #4CD280 | Even thirds — balanced and loud | |
| Tetradic | #D24C5B | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#804cd2 text on a black background
contrast 3.88:1
#804cd2 text on a white background
contrast 5.41:1
CSS3 live lab
The quick brown fox
color: #804cd2;
background-color: #804cd2;
Glowing headline
text-shadow: 2px 2px 8px #804cd2;
Soft neon halo
text-shadow: 0 0 14px rgba(128, 76, 210, 0.45);
box-shadow: 0 12px 32px -8px rgba(128, 76, 210, 0.45);
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.
Closest color with a full write-up: Iris (#5a4fcf) — ΔE2000 6.6 away, with its history, psychology and brand usage.
#804cd2 in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
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.