Skip to content

#804fdf

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

RGB
128, 79, 223
HSL
260°, 69%, 59%
CMYK
43, 65, 0, 13
Luminance
0.1551

At a glance

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

Hex
#804fdf
Hue
260°
violet
Saturation
69%
vivid
Lightness
59%
balanced
Brightness
87%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1551
WCAG relative
Temperature
Cool
72/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
5.12:1
Closest name
Slate Blue
ΔE2000 5.4
Where it sits
Hue260° of 360°
Saturation69%
Lightness59%
Temperature
Warm ← → Cool72% 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#804fdf
RGBrgb(128, 79, 223)
HSLhsl(260, 69%, 59%)
CMYKcmyk(43%, 65%, 0%, 13%)
LABlab(46.3 51.8 -66.4)
LCHlch(46.3 84.2 308.0)
OKLCHoklch(0.560 0.208 294.3)
Decimal8409055
Display P3color(display-p3 0.502 0.310 0.875)

Copy-ready code

/* CSS */
color: #804fdf;
background-color: #804fdf;
/* Tailwind (arbitrary) */
class="text-[#804fdf] bg-[#804fdf]"
/* SCSS */
$brand: #804fdf;
/* SwiftUI */
Color(red: 0.502, green: 0.310, blue: 0.875)
/* Android */
Color.parseColor("#804fdf")
/* Flutter */
Color(0xFF804FDF)
/* Python / OpenCV (BGR) */
(223, 79, 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 #804fdf · 5.12:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.12:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.10:1
AA fail · AA large pass · AAA fail
Reading the other direction: #804fdf as text scores 5.12:1 on white and 4.10:1 on black.

Accessibility — WCAG contrast

Aa
#804fdf on white: 5.12:1
AA ✓ pass · AA-large · AAA
Aa
#804fdf on black: 4.10:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006FE3
deuteranopia · #006BDC
tritanopia · #667190

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #804fdf 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.

#F6F3FB
#EDE7F8
#D7CAF2
#BAA0EE
#9871E5
#804fdf
#5F26CF
#4F1FAD
#40198A
#311664
#1E0E3F
Base = 500Lightest = 50 · #F6F3FBDarkest = 950 · #1E0E3F
:root {
  --brand-50: #F6F3FB;
  --brand-100: #EDE7F8;
  --brand-200: #D7CAF2;
  --brand-300: #BAA0EE;
  --brand-400: #9871E5;
  --brand-500: #804fdf;
  --brand-600: #5F26CF;
  --brand-700: #4F1FAD;
  --brand-800: #40198A;
  --brand-900: #311664;
  --brand-950: #1E0E3F;
  --brand: #804fdf;
  --brand-ink: #ffffff;
}

Colors that work with #804fdf

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#F6F4FA
Tinted page background
Border#CFC0ED
Hairlines and dividers
Muted text#664B9B
Captions on the surface
Accent#A3B11B
Second voice, not a rival
Dark variant#32146C
Hover, pressed, headers
Light variant#EFE9FB
Selected rows, tints
Dark surface#191424
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 #804fdf

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#AEDF4F
Analogous left#4F66DF
Analogous right#C84FDF
Split-complement 1#DFC84F
Split-complement 2#66DF4F
Triadic 1#DF804F
Triadic 2#4FDF80
Tetradic#DF4F66

RGB percentages

Red50.2%
Green31.0%
Blue87.5%

CMYK percentages

Cyan42.6%
Magenta64.6%
Yellow0.0%
Key (black)12.5%

Color previews

#804fdf text on a black background

contrast 4.10:1

Card sample

#804fdf text on a white background

contrast 5.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #804fdf

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.

#804fdf 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.

#804fdf, answered

What color is #804fdf?

#804fdf is a balanced vivid violet, closest to Slate Blue (ΔE2000 5.4). It sits at 260° on the hue wheel with 69% saturation and 59% lightness, which reads as cool.

What is the RGB value of #804fdf?

rgb(128, 79, 223) — 128 red, 79 green and 223 blue out of 255, or 50.2% / 31% / 87.5% by channel.

Is #804fdf a light or a dark color?

It is a dark color. Relative luminance is 0.1551 and perceived brightness is 47%, so white text on it reaches 5.12:1.

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

White. It scores 5.12:1 against #804fdf, versus 4.10:1 for black — AA at any size.

What is the complementary color of #804fdf?

#AEDF4F sits directly opposite on the wheel. Softer options are the split-complements #DFC84F and #66DF4F, which give the same contrast with far less vibration.

What colors go well with #804fdf?

For interface work: #F6F4FA as the surface, #CFC0ED for borders, #664B9B for secondary text, #A3B11B as an accent and #32146C for hover and pressed states. For a palette, the analogous pair #4F66DF and #C84FDF stays calm, while #AEDF4F is the loudest partner.

What is #804fdf in CMYK for printing?

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

Is #804fdf warm or cool?

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

Work with #804fdf in the Color Lab