Skip to content

#784cef

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

RGB
120, 76, 239
HSL
256°, 84%, 62%
CMYK
50, 68, 0, 6
Luminance
0.1539

At a glance

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

Hex
#784cef
Hue
256°
violet
Saturation
84%
electric
Lightness
62%
balanced
Brightness
94%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1539
WCAG relative
Temperature
Cool
74/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.15:1
Closest name
Slate Blue
ΔE2000 6
Where it sits
Hue256° of 360°
Saturation84%
Lightness62%
Temperature
Warm ← → Cool74% 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#784cef
RGBrgb(120, 76, 239)
HSLhsl(256, 84%, 62%)
CMYKcmyk(50%, 68%, 0%, 6%)
LABlab(46.2 56.2 -75.7)
LCHlch(46.2 94.3 306.6)
OKLCHoklch(0.560 0.230 289.2)
Decimal7884015
Display P3color(display-p3 0.471 0.298 0.937)

Copy-ready code

/* CSS */
color: #784cef;
background-color: #784cef;
/* Tailwind (arbitrary) */
class="text-[#784cef] bg-[#784cef]"
/* SCSS */
$brand: #784cef;
/* SwiftUI */
Color(red: 0.471, green: 0.298, blue: 0.937)
/* Android */
Color.parseColor("#784cef")
/* Flutter */
Color(0xFF784CEF)
/* Python / OpenCV (BGR) */
(239, 76, 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 #784cef · 5.15:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.15:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.08:1
AA fail · AA large pass · AAA fail
Reading the other direction: #784cef as text scores 5.15:1 on white and 4.08:1 on black.

Accessibility — WCAG contrast

Aa
#784cef on white: 5.15:1
AA ✓ pass · AA-large · AAA
Aa
#784cef on black: 4.08:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0071F4
deuteranopia · #0069EC
tritanopia · #4E7698

Color scale — 50 to 950

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

#F5F2FC
#EBE6FA
#D3C5F6
#B198F6
#784cef
#6431ED
#4B14E1
#3F11BB
#320D96
#280E6C
#190944
Base = 400Lightest = 50 · #F5F2FCDarkest = 950 · #190944
:root {
  --brand-50: #F5F2FC;
  --brand-100: #EBE6FA;
  --brand-200: #D3C5F6;
  --brand-300: #B198F6;
  --brand-400: #784cef;
  --brand-500: #6431ED;
  --brand-600: #4B14E1;
  --brand-700: #3F11BB;
  --brand-800: #320D96;
  --brand-900: #280E6C;
  --brand-950: #190944;
  --brand: #784cef;
  --brand-ink: #ffffff;
}

Colors that work with #784cef

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#CCC0ED
Hairlines and dividers
Muted text#604B9B
Captions on the surface
Accent#BCBF0D
Second voice, not a rival
Dark variant#270A75
Hover, pressed, headers
Light variant#EDE8FD
Selected rows, tints
Dark surface#181424
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 #784cef

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#C3EF4C
Analogous left#4C72EF
Analogous right#CA4CEF
Split-complement 1#EFCA4C
Split-complement 2#72EF4C
Triadic 1#EF784C
Triadic 2#4CEF78
Tetradic#EF4C72

RGB percentages

Red47.1%
Green29.8%
Blue93.7%

CMYK percentages

Cyan49.8%
Magenta68.2%
Yellow0.0%
Key (black)6.3%

Color previews

#784cef text on a black background

contrast 4.08:1

Card sample

#784cef text on a white background

contrast 5.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #784cef

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.

#784cef 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#784cef, answered

What color is #784cef?

#784cef is a balanced electric violet, closest to Slate Blue (ΔE2000 6). It sits at 256° on the hue wheel with 84% saturation and 62% lightness, which reads as cool.

What is the RGB value of #784cef?

rgb(120, 76, 239) — 120 red, 76 green and 239 blue out of 255, or 47.1% / 29.8% / 93.7% by channel.

Is #784cef a light or a dark color?

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

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

White. It scores 5.15:1 against #784cef, versus 4.08:1 for black — AA at any size.

What is the complementary color of #784cef?

#C3EF4C sits directly opposite on the wheel. Softer options are the split-complements #EFCA4C and #72EF4C, which give the same contrast with far less vibration.

What colors go well with #784cef?

For interface work: #F6F4FA as the surface, #CCC0ED for borders, #604B9B for secondary text, #BCBF0D as an accent and #270A75 for hover and pressed states. For a palette, the analogous pair #4C72EF and #CA4CEF stays calm, while #C3EF4C is the loudest partner.

What is #784cef in CMYK for printing?

cmyk(50%, 68%, 0%, 6%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #784cef warm or cool?

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

Work with #784cef in the Color Lab