Skip to content

#780af2

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

RGB
120, 10, 242
HSL
268°, 92%, 49%
CMYK
50, 96, 0, 5
Luminance
0.1062

At a glance

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

Hex
#780af2
Hue
268°
violet
Saturation
92%
electric
Lightness
49%
balanced
Brightness
95%
HSV value
Perceived
41%
weighted brightness
Luminance
0.1062
WCAG relative
Temperature
Cool
68/100 cool
Color family
Violet
Tone
Electric
Best ink
White
6.72:1
Closest name
Blue Violet
ΔE2000 4.4
Where it sits
Hue268° of 360°
Saturation92%
Lightness49%
Temperature
Warm ← → Cool68% 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#780af2
RGBrgb(120, 10, 242)
HSLhsl(268, 92%, 49%)
CMYKcmyk(50%, 96%, 0%, 5%)
LABlab(38.9 78.7 -89.3)
LCHlch(38.9 119.0 311.4)
OKLCHoklch(0.511 0.279 293.3)
Decimal7867122
Display P3color(display-p3 0.471 0.039 0.949)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#780af2 on white: 6.72:1
AA ✓ pass · AA-large · AAA
Aa
#780af2 on black: 3.12:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005EF7
deuteranopia · #0058EE
tritanopia · #4E618F

Color scale — 50 to 950

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

#F7F2FD
#EFE4FB
#DCC3F9
#C493FB
#A75DF8
#8927F6
#780af2
#6108C4
#4E069D
#3A0971
#250647
Base = 600Lightest = 50 · #F7F2FDDarkest = 950 · #250647
:root {
  --brand-50: #F7F2FD;
  --brand-100: #EFE4FB;
  --brand-200: #DCC3F9;
  --brand-300: #C493FB;
  --brand-400: #A75DF8;
  --brand-500: #8927F6;
  --brand-600: #780af2;
  --brand-700: #6108C4;
  --brand-800: #4E069D;
  --brand-900: #3A0971;
  --brand-950: #250647;
  --brand: #780af2;
  --brand-ink: #ffffff;
}

Colors that work with #780af2

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#D5C0ED
Hairlines and dividers
Muted text#714B9B
Captions on the surface
Accent#9CC804
Second voice, not a rival
Dark variant#3D057A
Hover, pressed, headers
Light variant#F2E7FE
Selected rows, tints
Dark surface#1C1424
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 #780af2

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#84F20A
Analogous left#0A10F2
Analogous right#EC0AF2
Split-complement 1#F2EC0A
Split-complement 2#10F20A
Triadic 1#F2780A
Triadic 2#0AF278
Tetradic#F20A10

RGB percentages

Red47.1%
Green3.9%
Blue94.9%

CMYK percentages

Cyan50.4%
Magenta95.9%
Yellow0.0%
Key (black)5.1%

Color previews

#780af2 text on a black background

contrast 3.12:1

Card sample

#780af2 text on a white background

contrast 6.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #780af2;
Background color
Panel with #780af2 background
background-color: #780af2;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #780af2;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(120, 10, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(120, 10, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #780af2;
background: linear-gradient(135deg, #780af2, #F20AD2);

Monochromatic scale

Palettes built from #780af2

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.

#780af2 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.

#780af2, answered

What color is #780af2?

#780af2 is a balanced electric violet, closest to Blue Violet (ΔE2000 4.4). It sits at 268° on the hue wheel with 92% saturation and 49% lightness, which reads as cool.

What is the RGB value of #780af2?

rgb(120, 10, 242) — 120 red, 10 green and 242 blue out of 255, or 47.1% / 3.9% / 94.9% by channel.

Is #780af2 a light or a dark color?

It is a dark color. Relative luminance is 0.1062 and perceived brightness is 41%, so white text on it reaches 6.72:1.

Should I use black or white text on #780af2?

White. It scores 6.72:1 against #780af2, versus 3.12:1 for black — AA at any size.

What is the complementary color of #780af2?

#84F20A sits directly opposite on the wheel. Softer options are the split-complements #F2EC0A and #10F20A, which give the same contrast with far less vibration.

What colors go well with #780af2?

For interface work: #F7F4FA as the surface, #D5C0ED for borders, #714B9B for secondary text, #9CC804 as an accent and #3D057A for hover and pressed states. For a palette, the analogous pair #0A10F2 and #EC0AF2 stays calm, while #84F20A is the loudest partner.

What is #780af2 in CMYK for printing?

cmyk(50%, 96%, 0%, 5%). 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 #780af2 warm or cool?

Cool — it scores 68 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CD0AF2; nudged cooler, #2107F5.

Work with #780af2 in the Color Lab