Skip to content

#782fac

a dark, vivid violet · warm · closest name: indigo

RGB
120, 47, 172
HSL
275°, 57%, 43%
CMYK
30, 73, 0, 33
Luminance
0.0900

Every format

HEX#782fac
RGBrgb(120, 47, 172)
HSLhsl(275, 57%, 43%)
CMYKcmyk(30%, 73%, 0%, 33%)
LABlab(36.0 53.1 -53.5)
LCHlch(36.0 75.4 314.8)
OKLCHoklch(0.472 0.191 307.2)

Copy-ready code

/* CSS */
color: #782fac;
background-color: #782fac;
/* Tailwind (arbitrary) */
class="text-[#782fac] bg-[#782fac]"
/* SCSS */
$brand: #782fac;
/* SwiftUI */
Color(red: 0.471, green: 0.184, blue: 0.675)
/* Android */
Color.parseColor("#782fac")

Accessibility — WCAG contrast

Aa
#782fac on white: 7.50:1
AA ✓ pass · AA-large · AAA
Aa
#782fac on black: 2.80:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red47.1%
Green18.4%
Blue67.5%

CMYK percentages

Cyan30.2%
Magenta72.7%
Yellow0.0%
Key (black)32.5%

Color previews

#782fac text on a black background

contrast 2.80:1

Card sample

#782fac text on a white background

contrast 7.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #782fac;
Background color
Panel with #782fac background
background-color: #782fac;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #782fac;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(120, 47, 172, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(120, 47, 172, 0.45);
Border & gradient
Gradient panel
border: 3px solid #782fac;
background: linear-gradient(135deg, #782fac, #AC2F8D);

Monochromatic scale

Palettes built from #782fac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #782fac in the Color Lab