Skip to content

#784eb2

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

RGB
120, 78, 178
HSL
265°, 39%, 50%
CMYK
33, 56, 0, 30
Luminance
0.1266

At a glance

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

Hex
#784eb2
Hue
265°
violet
Saturation
39%
soft
Lightness
50%
balanced
Brightness
70%
HSV value
Perceived
42%
weighted brightness
Luminance
0.1266
WCAG relative
Temperature
Cool
69/100 cool
Color family
Violet
Tone
Soft
Best ink
White
5.95:1
Closest name
Slate Blue
ΔE2000 6.8
Where it sits
Hue265° of 360°
Saturation39%
Lightness50%
Temperature
Warm ← → Cool69% 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#784eb2
RGBrgb(120, 78, 178)
HSLhsl(265, 39%, 50%)
CMYKcmyk(33%, 56%, 0%, 30%)
LABlab(42.2 38.8 -47.0)
LCHlch(42.2 60.9 309.5)
OKLCHoklch(0.518 0.154 300.5)
Decimal7884466
Display P3color(display-p3 0.471 0.306 0.698)

Copy-ready code

/* CSS */
color: #784eb2;
background-color: #784eb2;
/* Tailwind (arbitrary) */
class="text-[#784eb2] bg-[#784eb2]"
/* SCSS */
$brand: #784eb2;
/* SwiftUI */
Color(red: 0.471, green: 0.306, blue: 0.698)
/* Android */
Color.parseColor("#784eb2")
/* Flutter */
Color(0xFF784EB2)
/* Python / OpenCV (BGR) */
(178, 78, 120)

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 #784eb2 · 5.95:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.95:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.53:1
AA fail · AA large pass · AAA fail
Reading the other direction: #784eb2 as text scores 5.95:1 on white and 3.53:1 on black.

Accessibility — WCAG contrast

Aa
#784eb2 on white: 5.95:1
AA ✓ pass · AA-large · AAA
Aa
#784eb2 on black: 3.53:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2463B5
deuteranopia · #3363B0
tritanopia · #6C6278

Color scale — 50 to 950

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

#F7F5FA
#EFEBF4
#DCD2E9
#C3B1DD
#A68ACC
#8863BB
#784eb2
#603E8E
#4C3172
#3A2753
#241834
Base = 600Lightest = 50 · #F7F5FADarkest = 950 · #241834
:root {
  --brand-50: #F7F5FA;
  --brand-100: #EFEBF4;
  --brand-200: #DCD2E9;
  --brand-300: #C3B1DD;
  --brand-400: #A68ACC;
  --brand-500: #8863BB;
  --brand-600: #784eb2;
  --brand-700: #603E8E;
  --brand-800: #4C3172;
  --brand-900: #3A2753;
  --brand-950: #241834;
  --brand: #784eb2;
  --brand-ink: #ffffff;
}

Colors that work with #784eb2

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#D4C6E6
Hairlines and dividers
Muted text#6C4B9B
Captions on the surface
Accent#83923A
Second voice, not a rival
Dark variant#3C2759
Hover, pressed, headers
Light variant#F1EDF7
Selected rows, tints
Dark surface#1B1424
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 #784eb2

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

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • 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#88B24E
Analogous left#4E56B2
Analogous right#AA4EB2
Split-complement 1#B2AA4E
Split-complement 2#56B24E
Triadic 1#B2784E
Triadic 2#4EB278
Tetradic#B24E56

RGB percentages

Red47.1%
Green30.6%
Blue69.8%

CMYK percentages

Cyan32.6%
Magenta56.2%
Yellow0.0%
Key (black)30.2%

Color previews

#784eb2 text on a black background

contrast 3.53:1

Card sample

#784eb2 text on a white background

contrast 5.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #784eb2;
Background color
Panel with #784eb2 background
background-color: #784eb2;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #784eb2;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(120, 78, 178, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(120, 78, 178, 0.45);
Border & gradient
Gradient panel
border: 3px solid #784eb2;
background: linear-gradient(135deg, #784eb2, #B24EA9);

Monochromatic scale

Palettes built from #784eb2

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.

#784eb2 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.

#784eb2, answered

What color is #784eb2?

#784eb2 is a balanced soft violet, closest to Slate Blue (ΔE2000 6.8). It sits at 265° on the hue wheel with 39% saturation and 50% lightness, which reads as cool.

What is the RGB value of #784eb2?

rgb(120, 78, 178) — 120 red, 78 green and 178 blue out of 255, or 47.1% / 30.6% / 69.8% by channel.

Is #784eb2 a light or a dark color?

It is a dark color. Relative luminance is 0.1266 and perceived brightness is 42%, so white text on it reaches 5.95:1.

Should I use black or white text on #784eb2?

White. It scores 5.95:1 against #784eb2, versus 3.53:1 for black — AA at any size.

What is the complementary color of #784eb2?

#88B24E sits directly opposite on the wheel. Softer options are the split-complements #B2AA4E and #56B24E, which give the same contrast with far less vibration.

What colors go well with #784eb2?

For interface work: #F7F4FA as the surface, #D4C6E6 for borders, #6C4B9B for secondary text, #83923A as an accent and #3C2759 for hover and pressed states. For a palette, the analogous pair #4E56B2 and #AA4EB2 stays calm, while #88B24E is the loudest partner.

What is #784eb2 in CMYK for printing?

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

Is #784eb2 warm or cool?

Cool — it scores 69 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9D4EB2; nudged cooler, #514BB5.

Work with #784eb2 in the Color Lab